picogl.renderer.glresourceregistry
GL Resource Registry
Holds OpenGL-related state (VAOs, shaders, textures, transform matrices) and tracks resources per Qt / GL context when PySide6 is already in use.
Heavy deps (VertexArrayObject, ShaderProgram, PySide6) are not imported at module load so GLUT examples stay free of Qt / NumPy-shiboken warnings.
Attributes
Classes
OpenGL resource registry and render-state holder. |
Functions
Return the current Qt GL context if PySide6 is already imported. |
Module Contents
- picogl.renderer.glresourceregistry._current_qt_context()[source]
Return the current Qt GL context if PySide6 is already imported.
Does not import PySide6 itself — GLUT paths must stay Qt-free.
- class picogl.renderer.glresourceregistry.GLResourceRegistry[source]
OpenGL resource registry and render-state holder.
- current_vao: picogl.backend.modern.core.vertex.array.object.VertexArrayObject | None = None[source]
- shader: picogl.backend.modern.core.shader.program.ShaderProgram | None = None[source]
- shader_type: picogl.shaders.ShaderType[source]