Cogl.MatrixStack.prototype.push

function push(): void {
    // Gjs wrapper for cogl_matrix_stack_push()
}
  

Saves the current transform and starts a new transform that derives from the current transform.

This is usually called while traversing a scenegraph whenever you traverse one level deeper. Cogl.MatrixStack.prototype.pop can then be called when going back up one layer to restore the previous transform of an ancestor.