Ninja Library - Matrix Function

njPopMatrix

Pops the matrix stack

FORMAT

Bool njPopMatrix( n )
Uint32 n

PARAMETER

 n  Number of items to pop from the matrix stack 

RETURN

 TRUE   Successful 
 FALSE   Failure (stack underflow) 

DESCRIPTION

Pops n items from the matrix stack.

EXAMPLE

The following pops two items from the matrix stack which was pushed 
in stack by njPushMatix() function.

NJS_MATRIX stack[10];
NJS_VIEW view;
njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njPushMatrix(NULL);
njPopMatrix(2);

NOTE

The number of items popped is the same as the number of items pushed.

REFERENCE

njPushMatrix()

njPopMatrix
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999