d3dx9: Implementation of D3DXMatrixDecompose 2/2

David Adam david.adam.cnrs at gmail.com
Tue Aug 5 14:34:16 CDT 2008


Hi,

some remarks

+    if (((*poutscale).x==0)||((*poutscale).y==0)||((*poutscale).z==0))
should be
+    if ((poutscale->x==0)||(poutscale->y==0)||(poutscale->z==0))

No need to redefine a module fonction
Replace  +    poutscale->x=module(pM->m[0][0],pM->m[0][1],pM->m[0][2]);
by
+
poutscale->x=D3DXVec3Length(&D3DXVECTOR3((pM->m[0][0],pM->m[0][1],pM->m[0][2]));

David


2008/8/5 Luis Busquets <luis.busquets at ilidium.com>

> Please be aware that this function relies on D3DXQuaternionRotationMatrix
> and therefore the bug in the latter has to be corrected.
>
> ---
>  dlls/d3dx9_36/d3dx9_36.spec |    2 +-
>  dlls/d3dx9_36/math.c        |   39 ++++++++++++++++++++++++++
>  dlls/d3dx9_36/tests/math.c  |   64
> +++++++++++++++++++++++++++++++++++++++++++
>  include/d3dx9math.h         |    1 +
>  4 files changed, 105 insertions(+), 1 deletions(-)
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20080805/3a67df27/attachment.htm 


More information about the wine-devel mailing list