picogl.backend.gl.state.scoped
State-preserving context managers for temporary OpenGL capability changes.
Functions
|
Temporarily set an OpenGL capability and restore the previous state on exit. |
|
Temporarily disable an OpenGL capability and restore the previous state on exit. |
|
Temporarily enable an OpenGL capability and restore the previous state on exit. |
Module Contents
- picogl.backend.gl.state.scoped.gl_capability(capability: picogl.backend.gl.api.enable.GLCapabilities, enabled: bool) Iterator[None][source]
Temporarily set an OpenGL capability and restore the previous state on exit.