Module: wine Branch: master Commit: f90881cd36076b57c4e680537627122c8e5353ba URL: http://source.winehq.org/git/wine.git/?a=commit;h=f90881cd36076b57c4e6805376...
Author: Jérôme Gardou jerome.gardou@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 =