ID3DXMATRIXStack::MultMatrixLocal method (D3DX10.h)

Note

The D3DX10 utility library is deprecated. We recommend that you use DirectXMath instead along with this header from GitHub.

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

Syntax

HRESULT MultMatrixLocal(
  [in] const D3DXMATRIX *pM
);

Parameters

pM [in]

Type: const D3DXMATRIX*

Pointer to the D3DXMATRIX structure to be multiplied with the current matrix.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

This method left-multiplies the given matrix to the current matrix (transformation is about the local origin of the object).

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

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

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DXMatrixStack

D3DX Interfaces