Microsoft DirectX 8.1 (C++)

ID3DXMatrixStack::Push

Adds a matrix to the stack.

HRESULT Push(); 

Parameters

None.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

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

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

See Also

ID3DXMatrixStack::GetTop, ID3DXMatrixStack::Pop