picogl.protocols
Submodules
Attributes
Classes
Wrapper or group holding nested VAO/VBO handles (e.g. ElMo buffer groups). |
|
Protocol for OpenGL buffer/VAO objects that can be bound, drawn, and deleted. |
|
Single legacy/modern VBO or EBO with CPU-side |
Package Contents
- class picogl.protocols.BufferContainer[source]
Bases:
ProtocolWrapper or group holding nested VAO/VBO handles (e.g. ElMo buffer groups).
- vao: DrawableBuffer | int | None
- vbo: VertexBufferDataSource | int | None
- named_vbos: Mapping[Any, VertexBufferDataSource]
- class picogl.protocols.DrawableBuffer[source]
Bases:
ProtocolProtocol for OpenGL buffer/VAO objects that can be bound, drawn, and deleted.
Implementors must provide bind(), unbind(), draw(), and delete(). Optional: is_valid() for validity checks; __enter__/__exit__ for context-manager support (with obj: obj.draw()).
Legacy VBO groups and modern VAOs (VertexArrayObject, RibbonVBG, etc.) conform to this protocol.
- type picogl.protocols.DrawableLengthInput = DrawableBuffer | BufferContainer | VertexBufferDataSource | None[source]
- class picogl.protocols.VertexBufferDataSource[source]
Bases:
ProtocolSingle legacy/modern VBO or EBO with CPU-side
data.- data: numpy.ndarray | None