Esempio n. 1
0
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;
}
Esempio n. 2
0
File: face.c Progetto: Kelimion/wine
/*** 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;
}
Esempio n. 3
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 4
0
File: face.c Progetto: Kelimion/wine
static int WINAPI IDirect3DRMFaceImpl_GetVertexCount(IDirect3DRMFace* iface)
{
    IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface);

    TRACE("(%p/%p)->(): stub\n", iface, This);

    return 0;
}
Esempio n. 5
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 6
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 7
0
File: face.c Progetto: Kelimion/wine
static DWORD WINAPI IDirect3DRMFaceImpl_GetAppData(IDirect3DRMFace* iface)
{
    IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface);

    FIXME("(%p/%p)->(): stub\n", iface, This);

    return 0;
}
Esempio n. 8
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);
}
Esempio n. 9
0
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);
}
Esempio n. 10
0
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);
}
Esempio n. 11
0
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);
}
Esempio n. 12
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 13
0
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);
}
Esempio n. 14
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 15
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);
}
Esempio n. 16
0
File: face.c Progetto: Kelimion/wine
static D3DCOLOR WINAPI IDirect3DRMFaceImpl_GetColor(IDirect3DRMFace* iface)
{
    IDirect3DRMFaceImpl *This = impl_from_IDirect3DRMFace(iface);

    TRACE("(%p/%p)->(): stub\n", iface, This);

    return 0;
}
Esempio n. 17
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 18
0
File: face.c Progetto: Kelimion/wine
/*** 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;
}
Esempio n. 19
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 20
0
File: face.c Progetto: Kelimion/wine
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);
}
Esempio n. 21
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 22
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 23
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 24
0
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);
}
Esempio n. 25
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 26
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 27
0
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);
}
Esempio n. 28
0
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;
}
Esempio n. 29
0
File: face.c Progetto: Kelimion/wine
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;
}
Esempio n. 30
0
File: face.c Progetto: Kelimion/wine
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;
}