picogl.buffers.vertex.modern
Classes
ModernVertexArrayGroup |
Module Contents
- class picogl.buffers.vertex.modern.ModernVertexArrayGroup(handle: int = None)[source]
Bases:
picogl.buffers.base.VertexBaseModernVertexArrayGroup
Modern backend (uses a real VAO)
- 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]
set_layout
- Parameters:
layout – LayoutDescriptor: The layout descriptor to define the vertex attribute format.
- Raises:
None
Sets the layout for the rendering setup by binding the buffers and configuring the attributes. The state is stored in the Vertex Array Object (VAO). This method assumes a single Vertex Buffer Object (VBO) holds all position data but can be adapted as required. Handles optional usage of Normal Buffer Object (NBO) and Element Buffer Object (EBO) if present.