matrix_stack_set

This function overwrites the current top of the matrix stack with the specified matrix.

 

Syntax:

matrix_stack_set(matrix);

ArgumentTypeDescription
matrixMatrix ArrayThe matrix index to use.

 

Returns:

N/A

 

Example:

var m = matrix_build(x, y, 0, 0, 0, 0, 1, 1, 1);
matrix_stack_set(m);

The above code will build a new matrix and store the resulting matrix index in the variable "m" before replacing the top of the matrix stack with it.