#include <Ninja.h>
void njInitMatrix(*m,n)
NJS_MATRIX *m
Sint32 n
PARAMETERS
NJS_MATRIX *m
matrix stack
Sint32 n
size of matrix stack
RETURN VALUE
None
FUNCTION
Initializes the matrix stack.
The matrix stack (an array) must be allocated by the user.
Also, the stacked matrix is defined in the array of Float size 32.
The 16(4x4) of the front half is used for the normal matrix operation and the 16(4x4) of the latter half is for the Light operation.
In case of using the 16 matrices of the front half for the Light operation, it is possible to skip the 16 matrices operations of the latter half by assigning 0 to the third argument.
EXAMPLE
The following allocates a matrix stack of size 10 and initializes it.
NJS_MATRIC stack[10];
njInitMatrix(stack, 10);
NOTES
In this release, Model functions do not support this function.