[PATCH] Implement ID3DXMatrixStack::TranslateLocal

Jérôme Gardou jerome.gardou at laposte.net
Sat Nov 15 09:24:35 CST 2008


---
 dlls/d3dx8/math.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c
index 94d8127..6b015b5 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -848,8 +848,13 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FL
 static HRESULT WINAPI ID3DXMatrixStackImpl_TranslateLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
 {
     ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
-    FIXME("(%p) : stub\n",This);
-    return E_NOTIMPL;
+    D3DMATRIX tmp ;
+
+    TRACE("iface %p\n",This);
+
+    D3DXMatrixTranslation(&tmp, x, y, z) ;
+    D3DXMatrixMultiply(&This->stack[This->current], &tmp, &This->stack[This->current]) ;
+    return D3D_OK;
 }
 
 static const ID3DXMatrixStackVtbl ID3DXMatrixStack_Vtbl =
-- 
1.6.0.3


--------------040301000209050707010406--



More information about the wine-patches mailing list