picogl.backend.legacy.core.vertex.buffer.client_states

A utility for safely managing fixed-function OpenGL client states.

This module provides a context manager to enable and disable OpenGL legacy client states in a controlled manner. It ensures that the client states are reset to their initial state upon exiting the context, even in the case of an exception.

Functions

legacy_client_states(*states)

Enable/disable fixed-function client states safely.

Module Contents

picogl.backend.legacy.core.vertex.buffer.client_states.legacy_client_states(*states)[source]

Enable/disable fixed-function client states safely.