Microsoft DirectX 8.1 (C++)

ID3DXMatrixStack::GetTop

Retrieves the current matrix at the top of the stack.

D3DXMATRIX* GetTop(); 

Parameters

None.

Return Values

This method returns a pointer to a D3DXMATRIX structure representing the current matrix.

Remarks

The D3DXMATRIX pointer returned by this method is not guaranteed to be valid after subsequent stack operations.

Note that this method does not remove the current matrix from the top of the stack; rather, it just returns the current matrix.

Requirements

  Header: Declared in D3dx8math.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXMatrixStack::Pop, ID3DXMatrixStack::Push