picogl.backend.gl.driver.geometry

Mesh binding and indexed draw operations.

Handles the binding of GPU-based meshes and facilitates drawing operations using various strategies, including indexed draw and array draw functionalities. Provides both static and class methods for drawing operations.

Classes:

GLGeometryDriver: Utility for binding, drawing, and managing GPU meshes.

Classes

GLGeometryDriver

Mesh binding and indexed draw operations.

Module Contents

class picogl.backend.gl.driver.geometry.GLGeometryDriver(binding: picogl.backend.opengl.GLBindingStrategy)[source]

Mesh binding and indexed draw operations.

binding[source]
draw_gpu_mesh(gpu_mesh: picogl.backend.geometry.mesh.GPUMesh, mode) None[source]

Bind and draw a uploaded GPU mesh.

draw_mesh(mesh, mode)[source]

Deprecated: bind and draw through the binding strategy shim.

static draw_elements(mode, indices)[source]
static draw_bound_elements(mode, index_count: int, index_type=GLIndexType.UNSIGNED_INT, pointer=None)[source]
static draw_arrays(mode, first: int, count: int)[source]
classmethod draw_arrays_bound_vao(vao: int, mode, first: int, count: int)[source]