Cogl.MatrixStack.prototype.get

function get(): [return_value: Cogl.Matrix, matrix: Cogl.Matrix] {
    // Gjs wrapper for cogl_matrix_stack_get()
}
  

Resolves the current stack transform into a Cogl.Matrix by combining the operations that have been applied to build up the current transform.

There are two possible ways that this function may return its result depending on whether the stack is able to directly point to an internal Cogl.Matrix or whether the result needs to be composed of multiple operations.

If an internal matrix contains the required result then this function will directly return a pointer to that matrix, otherwise if the function returns null then matrix will be initialized to match the current transform of stack.

<note>matrix will be left untouched if a direct pointer is returned.</note>

return_value

A direct pointer to the current transform or null and in that case matrix will be initialized with the value of the current transform.

matrix

The potential destination for the current matrix