Module: wine Branch: master Commit: 39e0dc79ef47e8cc32dac3886607e5f1bf32fd7a URL: http://source.winehq.org/git/wine.git/?a=commit;h=39e0dc79ef47e8cc32dac38866...
Author: Jérôme Gardou jerome.gardou@gmail.com Date: Wed Nov 12 08:57:18 2008 +0100
d3dx8: Implement D3DXMatrixStack_RotateYawPitchRoll.
---
dlls/d3dx8/math.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 919cfac..ccd9009 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -792,9 +792,15 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxisLocal(ID3DXMatrixStack *ifa
static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRoll(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { + D3DXMATRIX temp; ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return E_NOTIMPL; + + TRACE("iface %p\n", iface); + + D3DXMatrixRotationYawPitchRoll(&temp, x, y, z); + D3DXMatrixMultiply(&This->stack[This->current], &This->stack[This->current], &temp); + + return D3D_OK; }
static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRollLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)