picogl.gpu.buffers.mesh_owner ============================= .. py:module:: picogl.gpu.buffers.mesh_owner .. autoapi-nested-parse:: CPU MeshData ownership for GPU drawables. Classes ------- .. autoapisummary:: picogl.gpu.buffers.mesh_owner.MeshDataOwner picogl.gpu.buffers.mesh_owner.MeshChildOwner Module Contents --------------- .. py:class:: MeshDataOwner Expose attached :class:`~picogl.renderer.meshdata.MeshData` as ``mesh_data``. Storage remains the ``mesh`` attribute set by :meth:`~picogl.renderer.meshdata.MeshData.attach_vao`. .. py:property:: mesh_data :type: Optional[picogl.renderer.meshdata.MeshData] Return the CPU mesh attached to this drawable, if any. .. py:class:: MeshChildOwner 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 :class:`~picogl.renderer.meshdata.MeshData` themselves. .. py:property:: mesh_data :type: Optional[picogl.renderer.meshdata.MeshData] Return the CPU mesh on the child VAO/VBG, if any.