matrix_stack_set


Description

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


Syntax:

matrix_stack_set(matrix);


Arguments:

Argument Description
matrix The 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.


Back: Matrix Functions
Next: matrix_stack_push
© Copyright YoYo Games Ltd. 2018 All Rights Reserved