d3drm: Implement IDirect3DRMMeshImpl_SetGroupColorRGB.

This commit is contained in:
Christian Costa 2012-06-08 15:38:59 +02:00 committed by Alexandre Julliard
parent 85f4fda840
commit f1cd213931
1 changed files with 9 additions and 2 deletions

View File

@ -2742,9 +2742,16 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupColorRGB(IDirect3DRMMesh* ifac
{
IDirect3DRMMeshImpl *This = impl_from_IDirect3DRMMesh(iface);
FIXME("(%p)->(%u,%f,%f,%f): stub\n", This, id, red, green, blue);
TRACE("(%p)->(%u,%f,%f,%f)\n", This, id, red, green, blue);
return E_NOTIMPL;
if (id >= This->nb_groups)
return D3DRMERR_BADVALUE;
This->groups[id].color = D3DCOLOR_ARGB(0xff, (BYTE)(red * 255.0f),
(BYTE)(green * 255.0f),
(BYTE)(blue * 255.0f));
return D3DRM_OK;
}
static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupMapping(IDirect3DRMMesh* iface,