Microsoft DirectX 8.1 (C++)

ID3DXMatrixStack::MultMatrix

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

HRESULT MultMatrix(
  CONST D3DXMATRIX* pMat
); 

Parameters

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

Return Values

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_stack[m_currentPos] = m_stack[m_currentPos] * *pMat;

Note that this method does not add an item to the stack; rather, it replaces the current matrix with the product of the current matrix and the given matrix.

Requirements

  Header: Declared in D3dx8math.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXMatrixStack::MultMatrixLocal