Jérôme Gardou : d3dx8: Implement D3DXMatrixStack_TranslateLocal.
Alexandre Julliard
julliard at winehq.org
Fri Nov 28 07:16:56 CST 2008
Module: wine
Branch: master
Commit: f90881cd36076b57c4e680537627122c8e5353ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f90881cd36076b57c4e680537627122c8e5353ba
Author: Jérôme Gardou <jerome.gardou at gmail.com>
Date: Thu Nov 27 07:43:00 2008 +0100
d3dx8: Implement D3DXMatrixStack_TranslateLocal.
---
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 a989b57..bcab3b4 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -858,9 +858,15 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FL
static HRESULT WINAPI ID3DXMatrixStackImpl_TranslateLocal(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);
+
+ D3DXMatrixTranslation(&temp, x, y, z);
+ D3DXMatrixMultiply(&This->stack[This->current], &temp,&This->stack[This->current]);
+
+ return D3D_OK;
}
static const ID3DXMatrixStackVtbl ID3DXMatrixStack_Vtbl =
More information about the wine-cvs
mailing list