picogl.backend.gl.api.legacy.matrix

A context manager for handling OpenGL matrix stack operations.

This module provides a utility function that ensures the proper management of the OpenGL matrix stack, such as pushing and automatically restoring the matrix state within a given context.

Functions

gl_pushed_matrix()

Push and automatically restore the current matrix.

gl_matrix_mode_context()

gl matrix mode

Module Contents

picogl.backend.gl.api.legacy.matrix.gl_pushed_matrix()[source]

Push and automatically restore the current matrix.

picogl.backend.gl.api.legacy.matrix.gl_matrix_mode_context()[source]

gl matrix mode