Platform SDK: DirectX

ID3DXMatrixStack::Push

The ID3DXMatrixStack::Push method adds a matrix to the stack.

HRESULT Push(); 

Parameters

None.

Return Values

If this method is successful, it returns S_OK; otherwise, it returns D3DXERR_NOMEMORY.

Remarks

This method increments the count of items on the stack by 1, duplicating the current matrix. The stack will grow dynamically as more items are added.

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::Pop