Platform SDK: DirectX

ID3DXMatrixStack::MultMatrixLocal

The ID3DXMatrixStack::MultMatrixLocal method determines the product of the given matrix and the current matrix.

HRESULT MultMatrixLocal(
  const D3DXMATRIX* pMat
); 

Parameters

pMat
A pointer to the D3DXMATRIX structure to be multiplied with the current matrix.

Return Values

If this method is successful, it returns S_OK; otherwise, it returns D3DXERR_NULLPOINTER.

Remarks

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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.
  Library: Use d3dx.lib.

See Also

ID3DXMatrixStack::MultMatrix