d3dx9: Implement ID3DXSprite_Get/SetTransform.
This commit is contained in:
parent
21c3e79e52
commit
f975d4bfa7
|
@ -91,15 +91,23 @@ static HRESULT WINAPI ID3DXSpriteImpl_GetDevice(LPD3DXSPRITE iface, LPDIRECT3DDE
|
||||||
static HRESULT WINAPI ID3DXSpriteImpl_GetTransform(LPD3DXSPRITE iface, D3DXMATRIX *transform)
|
static HRESULT WINAPI ID3DXSpriteImpl_GetTransform(LPD3DXSPRITE iface, D3DXMATRIX *transform)
|
||||||
{
|
{
|
||||||
ID3DXSpriteImpl *This=(ID3DXSpriteImpl*)iface;
|
ID3DXSpriteImpl *This=(ID3DXSpriteImpl*)iface;
|
||||||
FIXME("(%p): stub\n", This);
|
TRACE("(%p)\n", This);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
if(transform==NULL) return D3DERR_INVALIDCALL;
|
||||||
|
*transform=This->transform;
|
||||||
|
|
||||||
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ID3DXSpriteImpl_SetTransform(LPD3DXSPRITE iface, CONST D3DXMATRIX *transform)
|
static HRESULT WINAPI ID3DXSpriteImpl_SetTransform(LPD3DXSPRITE iface, CONST D3DXMATRIX *transform)
|
||||||
{
|
{
|
||||||
ID3DXSpriteImpl *This=(ID3DXSpriteImpl*)iface;
|
ID3DXSpriteImpl *This=(ID3DXSpriteImpl*)iface;
|
||||||
FIXME("(%p): stub\n", This);
|
TRACE("(%p)\n", This);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
if(transform==NULL) return D3DERR_INVALIDCALL;
|
||||||
|
This->transform=*transform;
|
||||||
|
|
||||||
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ID3DXSpriteImpl_SetWorldViewRH(LPD3DXSPRITE iface, CONST D3DXMATRIX *world, CONST D3DXMATRIX *view)
|
static HRESULT WINAPI ID3DXSpriteImpl_SetWorldViewRH(LPD3DXSPRITE iface, CONST D3DXMATRIX *world, CONST D3DXMATRIX *view)
|
||||||
|
|
Loading…
Reference in New Issue