This function overwrites the current top of the matrix stack with the specified matrix.
matrix_stack_set(matrix);
Argument | Description |
---|---|
matrix | The matrix index to use. |
N/A
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.