ID3DXMATRIXStack::LoadMatrix method (D3dx9math.h)

Note

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

Loads the given matrix into the current matrix.

Syntax

HRESULT LoadMatrix(
  [in] const D3DXMATRIX *pMat
);

Parameters

pMat [in]

Type: const D3DXMATRIX*

Pointer to the D3DXMATRIX structure loaded into 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

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

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

ID3DXMATRIXStack

ID3DXMATRIXStack::LoadIdentity