picogl.buffers.base
Specializes the abstract façade into a slightly more concrete base (manages a GL handle, context manager behavior, common boilerplate).
Leaves rendering-specific logic to subclasses like ModernVertexArrayGroup.
Follows the “abstract base + partial implementation” pattern.
Classes
Generic OpenGL object interface with binding lifecycle. |
Module Contents
- class picogl.buffers.base.VertexBase(handle: int = None)[source]
Bases:
picogl.buffers.abstract.AbstractVertexGroupGeneric OpenGL object interface with binding lifecycle.
Provides handle + context manager, leaves binding to subclasses.
- attach_buffers(nbo=None, cbo=None, vbo=None, ebo=None) None[source]
Attach the buffers that the VAO/group should coordinate.
- set_layout(layout: picogl.buffers.attributes.LayoutDescriptor) None[source]
Define the attribute layout for this VAO/group.