picogl.buffers.vertex.modern

Classes

ModernVertexArrayGroup

ModernVertexArrayGroup

Module Contents

class picogl.buffers.vertex.modern.ModernVertexArrayGroup[source]

Bases: BaseVertexBuffer

ModernVertexArrayGroup

Modern backend (uses a real VAO)

init()[source]
attach_buffers(nbo=None, cbo=None, vbo=None, ebo=None) None[source]
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.

bind() None[source]
unbind() None[source]
delete() None[source]