d3d9.dllMultMatrix
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXMatrixStack::MultMatrix Method


Determines the product of the current matrix and the given matrix.

Syntax

HRESULT MultMatrix(      

    CONST D3DXMATRIX *pMat );

Parameters

pMat
[in] Pointer to the D3DXMATRIX structure to be multiplied with the current matrix.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

This method right-multiplies the given matrix to the current matrix (transformation is about the current world origin).

m_pstack[m_currentPos] = m_pstack[m_currentPos] * (*pMat);

This method does not add an item to the stack, it replaces the current matrix with the product of the current matrix and the given matrix.

See Also

ID3DXMatrixStack::MultMatrixLocal


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.