picogl.buffers.vertex.registry

A module for managing OpenGL object information.

This module defines a data structure for representing OpenGL object info, and provides a registry to store and manage these objects. It includes details such as object handle, type, label, creation time, and associated attributes.

Attributes

GL_REGISTRY

Classes

GLObjectAttrs

GL Object Attributes

GLObjectInfo

Functions

debug_vao(vao)

dump_gl_registry()

store_in_gl_registry(handle, label, ctx_id[, buffer_type])

store in gl registry

Module Contents

class picogl.buffers.vertex.registry.GLObjectAttrs[source]

GL Object Attributes

handle = 'handle'[source]
label = 'label'[source]
created_context = 'created_context'[source]
current_context = 'current_context'[source]
class picogl.buffers.vertex.registry.GLObjectInfo[source]
handle: int[source]
type: str[source]
label: str[source]
created_at: float[source]
context_id: int | None = None[source]
attributes: dict[source]
picogl.buffers.vertex.registry.GL_REGISTRY: Dict[int, GLObjectInfo][source]
picogl.buffers.vertex.registry.debug_vao(vao)[source]
picogl.buffers.vertex.registry.dump_gl_registry()[source]
picogl.buffers.vertex.registry.store_in_gl_registry(handle: int, label: str, ctx_id: int, buffer_type: str = 'VAO')[source]

store in gl registry