Jérôme Gardou : d3dx8: Implement D3DXMatrixStack_RotateYawPitchRollLocal.

Alexandre Julliard julliard at winehq.org
Fri Nov 28 07:16:53 CST 2008


Module: wine
Branch: master
Commit: 6d27cdc17a3a04bb95e59eb71882a8b56117790a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d27cdc17a3a04bb95e59eb71882a8b56117790a

Author: Jérôme Gardou <jerome.gardou at gmail.com>
Date:   Wed Nov 12 08:59:39 2008 +0100

d3dx8: Implement D3DXMatrixStack_RotateYawPitchRollLocal.

---

 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 ccd9009..c56c1c0 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -805,9 +805,15 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRoll(ID3DXMatrixStack *
 
 static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRollLocal(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], &temp, &This->stack[This->current]);
+
+    return D3D_OK;
 }
 
 static HRESULT WINAPI ID3DXMatrixStackImpl_Scale(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)




More information about the wine-cvs mailing list