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