ID3DXMATRIXStack::Pop method (D3dx9math.h)

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead along with this header from GitHub.

Removes the current matrix from the top of the stack.

Syntax

HRESULT Pop();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_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 returns without performing any action. If the current count of items on the stack is 1, then this method empties the stack.

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

ID3DXMATRIXStack

ID3DXMATRIXStack::GetTop

ID3DXMATRIXStack::Push