picogl.gpu.buffers.mesh_owner

CPU MeshData ownership for GPU drawables.

Classes

MeshDataOwner

Expose attached MeshData as mesh_data.

MeshChildOwner

Delegate mesh_data to a child GPU drawable stored on .vao.

Module Contents

class picogl.gpu.buffers.mesh_owner.MeshDataOwner[source]

Expose attached MeshData as mesh_data.

Storage remains the mesh attribute set by attach_vao().

property mesh_data: picogl.renderer.meshdata.MeshData | None[source]

Return the CPU mesh attached to this drawable, if any.

class picogl.gpu.buffers.mesh_owner.MeshChildOwner[source]

Delegate mesh_data to a child GPU drawable stored on .vao.

Used by wrapper groups (atom/bond buffer groups) that hold a VAO or VBG rather than owning MeshData themselves.

property mesh_data: picogl.renderer.meshdata.MeshData | None[source]

Return the CPU mesh on the child VAO/VBG, if any.