picogl.backend.gl.resource ========================== .. py:module:: picogl.backend.gl.resource .. autoapi-nested-parse:: Module providing the base class for OpenGL-managed resources. This module includes the GLResource class, which serves as a base class for all objects that are owned and managed by an OpenGL context. It ensures that objects are properly associated with the OpenGL context in which they were created and provides utility functions to validate that context. Classes ------- .. autoapisummary:: picogl.backend.gl.resource.GLResource Module Contents --------------- .. py:class:: GLResource(handle) Base class for all gl-owned objects. .. py:attribute:: _creation_context .. py:attribute:: _deleted :value: False .. py:attribute:: _handle :value: None .. py:property:: context .. py:method:: validate_context()