Microsoft DirectX 8.1 (C++) |
Determines the product of the given matrix and the current matrix.
HRESULT MultMatrixLocal( CONST D3DXMATRIX* pMat );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
This method left-multiplies the given matrix to the current matrix (transformation is about the local origin of the object).
m_stack[m_currentPos] = *pMat * m_stack[m_currentPos];
Note that this method does not add an item to the stack; rather, it replaces the current matrix with the product of the given matrix and the current matrix.
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.