ID3DXMATRIXStack

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

ID3DXMATRIXStack Members

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

Requirements

Header: Declared in D3dx9math.h.

Import Library: Use D3dx9.lib.