d3d9.dllID3DXMatrixStack
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXMatrixStack Interface


Applications use the methods of the ID3DXMatrixStack interface to manipulate a matrix stack.

ID3DXMatrixStack Members

GetTop Retrieves the current matrix at the top of the stack.
LoadIdentity Loads identity in the current matrix.
LoadMatrix Loads the given matrix into the current matrix.
MultMatrix Determines the product of the current matrix and the given matrix.
MultMatrixLocal Determines the product of the given matrix and the current matrix.
Pop Removes the current matrix from the top of the stack.
Push Adds a matrix to the stack.
RotateAxis Rotates (relative to world coordinate space) around an arbitrary axis.
RotateAxisLocal Rotates (relative to the object's local coordinate space) around an arbitrary axis.
RotateYawPitchRoll Rotates (relative to world coordinate space) around an arbitrary axis.
RotateYawPitchRollLocal Rotates (relative to the object's local coordinate space) around an arbitrary axis.
Scale Scale the current matrix about the world coordinate origin.
ScaleLocal Scale the current matrix about the object origin.
Translate Determines the product of the current matrix and the computed translation matrix determined by the given factors (x, y, and z).
TranslateLocal Determines the product of the computed translation matrix determined by the given factors (x, y, and z) and the current matrix.

Remarks

The ID3DXMatrixStack interface is obtained by calling the D3DXCreateMatrixStack function.

The LPD3DXMATRIXSTACK type is defined as a pointer to the ID3DXMatrixStack interface.

typedef interface ID3DXMatrixStack ID3DXMatrixStack;
typedef interface ID3DXMatrixStack *LPD3DXMATRIXSTACK;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIUnknown
Headerd3dx9math.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.