picogl.buffers.vertex.modern
Classes
ModernVertexArrayGroup |
Module Contents
- class picogl.buffers.vertex.modern.ModernVertexArrayGroup[source]
Bases:
BaseVertexBufferModernVertexArrayGroup
Modern backend (uses a real VAO)
- 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.