Platform SDK: DirectX

ID3DXMatrixStack::Pop

The ID3DXMatrixStack::Pop method removes the current matrix from the top of the stack.

HRESULT Pop(); 

Parameters

None.

Return Values

This method returns S_OK.

Remarks

Note that this method decrements the count of items on the stack by 1, effectively removing the current matrix from the top of the stack and promoting a matrix to the top of the stack. If the current count of items on the stack is 0, then this method simply returns without performing any action. If the current count of items on the stack is 1, then this method empties the stack.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.
  Library: Use d3dx.lib.

See Also

ID3DXMatrixStack::GetTop, ID3DXMatrixStack::Push