Ninja Library - Matrix Function

njPushMatrix

Pushes the matrix stack

FORMAT

Bool njPushMatrix( *m )
NJS_MATRIX *m

PARAMETER

 *m  Matrix to be pushed 

RETURN

 TRUE   Successful 
 FALSE  Failed (stack overflow) 

DESCRIPTION

Pushes matrix m onto the matrix stack. Pushed matrix can be poped by njPopMatix() function. When parameter m is NULL, this function pushes the current matrix.

EXAMPLE

The following pushes a unit matrix onto the matrix stack.
NJS_MATRIX stack[10];
NJS_VIEW view;
njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);

REFERENCE

njPopMatrix()

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