Skip to content

July 2012

Compare
Choose a tag to compare
@walbourn walbourn released this 23 May 20:00
· 246 commits to main since this release

XNA Math version 2.05 includes the following changes (primarily to be more consistent with DirectXMath):

  • Template forms have been added for XMVectorPermute, XMVectorSwizzle, XMVectorShiftLeft, XMVectorRotateLeft, XMVectorRotateRight, and XMVectorInsert
  • The XM_STRICT_XMMATRIX compilation define has been added for opaque XMMATRIX.
  • Stream stride and count arguments have been changed to size_t
  • The pDeterminant parameter of XMMatrixInverse is now optional
  • Additional operator= overloads for XMBYTEN4, XMBYTE4, XMUBYTEN4, and XMUBYTE4 types are now available

Code written to be portable between XNA Math and DirectXMath should make use of XM_STRICT_MATRIX & XM_STRICT_VECTOR4, and prefer the use of template forms (using 0-3 or 0-7 indices rather than XM_PERMUTE_* or XM_SWIZZLE_* constants).

See this post.