[PATCH] Implement ID3DXMatrixStack::RotateAxis
Jérôme Gardou
jerome.gardou at laposte.net
Sat Nov 15 09:16:19 CST 2008
---
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 143c352..2872f44 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -761,8 +761,14 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Push(ID3DXMatrixStack *iface)
static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxis(ID3DXMatrixStack *iface, CONST D3DXVECTOR3 *pv, FLOAT angle)
{
ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
- FIXME("(%p) : stub\n",This);
- return E_NOTIMPL;
+ D3DMATRIX tmp ;
+
+ TRACE("iface %p\n",This);
+
+ if(!pv) return D3DERR_INVALIDCALL ;
+ D3DXMatrixRotationAxis(&tmp, pv, angle) ;
+ D3DXMatrixMultiply(&This->stack[This->current], &This->stack[This->current], &tmp) ;
+ return D3D_OK;
}
static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxisLocal(ID3DXMatrixStack *iface, CONST D3DXVECTOR3 *pv, FLOAT angle)
--
1.6.0.3
--------------040806010302070201010009--
More information about the wine-patches
mailing list