Ninja Library - Matrix Function

njInitMatrix

Initializes the matrix stack

FORMAT

void njInitMatrix( *m , n, frag )
NJS_MATRIX *m
Sint32 n
Int flag

PARAMETER

 *m  Matrix stack 
 n  Size of matrix stack 
 flag  Calculation method for vector 
   0 : Do not change to unit vector at calculation 
   1 : Change to unit vector at calculation 

RETURN

None

DESCRIPTION

Initializes the matrix stack. The matrix stack (an array) must be allocated by the user.

EXAMPLE

The following allocates a matrix stack of size 10 and initializes it.
NJS_MATRIX stack[10];
njInitMatrix(stack, 10 , 1);

REFERENCE

NJS_MATRIX()

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