picogl.backend.geometry.mesh

GPU-resident mesh abstraction.

Classes

GPUMesh

Uploaded or CPU-bound geometry ready for bind + draw.

Module Contents

class picogl.backend.geometry.mesh.GPUMesh[source]

Bases: abc.ABC

Uploaded or CPU-bound geometry ready for bind + draw.

abstract bind() → None[source]

Bind GPU buffers or client arrays for draw.

abstract draw(mode: int) → None[source]

Issue draw calls for the bound mesh.

unbind() → None[source]

Release binding after draw (optional).

delete() → None[source]

Release GPU resources (optional).