d3drm: Implement IDirect3DRMMeshImpl_SetGroupColorRGB.
This commit is contained in:
parent
85f4fda840
commit
f1cd213931
|
@ -2742,9 +2742,16 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupColorRGB(IDirect3DRMMesh* ifac
|
||||||
{
|
{
|
||||||
IDirect3DRMMeshImpl *This = impl_from_IDirect3DRMMesh(iface);
|
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,
|
static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupMapping(IDirect3DRMMesh* iface,
|
||||||
|
|
Loading…
Reference in New Issue