static HRESULT WINAPI d3drm_face1_QueryInterface(IDirect3DRMFace *iface, REFIID riid, void **out) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out); if (IsEqualGUID(riid, &IID_IDirect3DRMFace) || IsEqualGUID(riid, &IID_IDirect3DRMObject) || IsEqualGUID(riid, &IID_IUnknown)) { *out = &face->IDirect3DRMFace_iface; } else if(IsEqualGUID(riid, &IID_IDirect3DRMFace2)) { *out = &face->IDirect3DRMFace2_iface; } else { *out = NULL; WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid)); return E_NOINTERFACE; } IUnknown_AddRef((IUnknown *)*out); return S_OK; }
/*** IUnknown methods ***/ static HRESULT WINAPI IDirect3DRMFaceImpl_QueryInterface(IDirect3DRMFace* iface, REFIID riid, void** object) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%s, %p)\n", iface, This, debugstr_guid(riid), object); *object = NULL; if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DRMFace)) { *object = &This->IDirect3DRMFace_iface; } else if(IsEqualGUID(riid, &IID_IDirect3DRMFace2)) { *object = &This->IDirect3DRMFace2_iface; } else { FIXME("interface %s not implemented\n", debugstr_guid(riid)); return E_NOINTERFACE; } IDirect3DRMFace_AddRef(iface); return S_OK; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetName(IDirect3DRMFace* iface, LPDWORD size, LPSTR name) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(%p, %p): stub\n", iface, This, size, name); return E_NOTIMPL; }
static int WINAPI IDirect3DRMFaceImpl_GetVertexCount(IDirect3DRMFace* iface) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(): stub\n", iface, This); return 0; }
static HRESULT WINAPI IDirect3DRMFaceImpl_SetAppData(IDirect3DRMFace* iface, DWORD data) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(%u): stub\n", iface, This, data); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_SetColor(IDirect3DRMFace* iface, D3DCOLOR color) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(%u): stub\n", iface, This, color); return E_NOTIMPL; }
static DWORD WINAPI IDirect3DRMFaceImpl_GetAppData(IDirect3DRMFace* iface) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(): stub\n", iface, This); return 0; }
static HRESULT WINAPI d3drm_face1_SetColor(IDirect3DRMFace *iface, D3DCOLOR color) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, color 0x%08x.\n", iface, color); return d3drm_face2_SetColor(&face->IDirect3DRMFace2_iface, color); }
static HRESULT WINAPI d3drm_face1_GetClassName(IDirect3DRMFace *iface, DWORD *size, char *name) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, size %p, name %p.\n", iface, size, name); return IDirect3DRMFace2_GetClassName(&face->IDirect3DRMFace2_iface, size, name); }
static DWORD WINAPI d3drm_face1_GetAppData(IDirect3DRMFace *iface) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p.\n", iface); return d3drm_face2_GetAppData(&face->IDirect3DRMFace2_iface); }
static HRESULT WINAPI d3drm_face1_SetName(IDirect3DRMFace *iface, const char *name) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, name %s.\n", iface, debugstr_a(name)); return d3drm_face2_SetName(&face->IDirect3DRMFace2_iface, name); }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetNormal(IDirect3DRMFace* iface, D3DVECTOR *normal) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p): stub\n", iface, This, normal); return E_NOTIMPL; }
static HRESULT WINAPI d3drm_face1_SetAppData(IDirect3DRMFace *iface, DWORD data) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, data %#x.\n", iface, data); return d3drm_face2_SetAppData(&face->IDirect3DRMFace2_iface, data); }
static int WINAPI IDirect3DRMFaceImpl_GetTextureCoordinateIndex(IDirect3DRMFace* iface, DWORD which) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%u): stub\n", iface, This, which); return 0; }
static D3DCOLOR WINAPI d3drm_face1_GetColor(IDirect3DRMFace *iface) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p.\n", iface); return d3drm_face2_GetColor(&face->IDirect3DRMFace2_iface); }
static D3DCOLOR WINAPI IDirect3DRMFaceImpl_GetColor(IDirect3DRMFace* iface) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(): stub\n", iface, This); return 0; }
static ULONG WINAPI IDirect3DRMFaceImpl_AddRef(IDirect3DRMFace* iface) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p)->(): new ref = %d\n", This, ref); return ref; }
/*** IDirect3DRMFace methods ***/ static HRESULT WINAPI IDirect3DRMFaceImpl_AddVertex(IDirect3DRMFace* iface, D3DVALUE x, D3DVALUE y, D3DVALUE z) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(%f, %f, %f): stub\n", iface, This, x, y, z); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetVertices(IDirect3DRMFace* iface, DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p, %p, %p): stub\n", iface, This, vertex_count, coords, normals); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetClassName(IDirect3DRMFace* iface, LPDWORD size, LPSTR name) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p, %p)\n", iface, This, size, name); return IDirect3DRMFace2_GetClassName(&This->IDirect3DRMFace2_iface, size, name); }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetMaterial(IDirect3DRMFace* iface, IDirect3DRMMaterial **material) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p): stub\n", iface, This, material); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetTexture(IDirect3DRMFace* iface, IDirect3DRMTexture **texture) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p): stub\n", iface, This, texture); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetTextureTopology(IDirect3DRMFace* iface, BOOL *wrap_u, BOOL *wrap_v) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%p, %p): stub\n", iface, This, wrap_u, wrap_v); return E_NOTIMPL; }
static HRESULT WINAPI d3drm_face1_SetColorRGB(IDirect3DRMFace *iface, D3DVALUE red, D3DVALUE green, D3DVALUE blue) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, red %.8e, green %.8e, blue %.8e.\n", iface, red, green, blue); return d3drm_face2_SetColorRGB(&face->IDirect3DRMFace2_iface, red, green, blue); }
static HRESULT WINAPI IDirect3DRMFaceImpl_SetColorRGB(IDirect3DRMFace* iface, D3DVALUE r, D3DVALUE g, D3DVALUE b) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); FIXME("(%p/%p)->(%f, %f, %f): stub\n", iface, This, r, g, b); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetVertex(IDirect3DRMFace* iface, DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%u, %p, %p): stub\n", iface, This, index, vertex, normal); return E_NOTIMPL; }
static HRESULT WINAPI d3drm_face1_AddDestroyCallback(IDirect3DRMFace *iface, D3DRMOBJECTCALLBACK cb, void *ctx) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); TRACE("iface %p, cb %p, ctx %p.\n", iface, cb, ctx); return IDirect3DRMFace2_AddDestroyCallback(&face->IDirect3DRMFace2_iface, cb, ctx); }
static ULONG WINAPI d3drm_face1_AddRef(IDirect3DRMFace *iface) { struct d3drm_face *face = impl_from_IDirect3DRMFace(iface); ULONG refcount = InterlockedIncrement(&face->ref); TRACE("%p increasing refcount to %u.\n", iface, refcount); return refcount; }
static HRESULT WINAPI IDirect3DRMFaceImpl_AddVertexAndNormalIndexed(IDirect3DRMFace* iface, DWORD vertex, DWORD normal) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%u, %u): stub\n", iface, This, vertex, normal); return E_NOTIMPL; }
static HRESULT WINAPI IDirect3DRMFaceImpl_GetTextureCoordinates(IDirect3DRMFace* iface, DWORD vertex, D3DVALUE *u, D3DVALUE *v) { IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface); TRACE("(%p/%p)->(%u, %p, %p): stub\n", iface, This, vertex, u, v); return E_NOTIMPL; }