?/TD>
Microsoft DirectX 9.0

ID3DXMatrixStack::LoadMatrix Method


Loads the given matrix into the current matrix.

Syntax

HRESULT LoadMatrix(      

    CONST D3DXMATRIX *pMat );

Parameters

pMat
[in] Pointer to the D3DXMATRIX structure loaded into 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

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

See Also

ID3DXMatrixStack::LoadIdentity


© 2002 Microsoft Corporation. All rights reserved.