picogl.backend.gl.resource

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

GLResource

Base class for all gl-owned objects.

Module Contents

class picogl.backend.gl.resource.GLResource(handle)[source]

Base class for all gl-owned objects.

_creation_context[source]
_deleted = False[source]
_handle = None[source]
property context[source]
validate_context()[source]