d3drm: Implement IDirect3DRMMesh_SetGroupTexture.

This commit is contained in:
Christian Costa 2012-06-05 22:45:09 +02:00 committed by Alexandre Julliard
parent 94c817e311
commit db6b10e22d
1 changed files with 15 additions and 3 deletions

View File

@ -2692,13 +2692,25 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupMaterial(IDirect3DRMMesh* ifac
}
static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupTexture(IDirect3DRMMesh* iface,
D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE value)
D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE texture)
{
IDirect3DRMMeshImpl *This = impl_from_IDirect3DRMMesh(iface);
FIXME("(%p)->(%u,%p): stub\n", This, id, value);
TRACE("(%p)->(%u,%p)\n", This, id, texture);
return E_NOTIMPL;
if (id >= This->nb_groups)
return D3DRMERR_BADVALUE;
if (This->groups[id].texture)
IDirect3DRMTexture3_Release(This->groups[id].texture);
if (!texture)
{
This->groups[id].texture = NULL;
return D3DRM_OK;
}
return IDirect3DRMTexture3_QueryInterface(texture, &IID_IDirect3DRMTexture, (LPVOID*)&This->groups[id].texture);
}
static DWORD WINAPI IDirect3DRMMeshImpl_GetGroupCount(IDirect3DRMMesh* iface)