picogl.backend.gl.driver.geometry ================================= .. py:module:: picogl.backend.gl.driver.geometry .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: picogl.backend.gl.driver.geometry.GLGeometryDriver Module Contents --------------- .. py:class:: GLGeometryDriver(binding: picogl.backend.opengl.GLBindingStrategy) Mesh binding and indexed draw operations. .. py:attribute:: binding .. py:method:: draw_gpu_mesh(gpu_mesh: picogl.backend.geometry.mesh.GPUMesh, mode) -> None Bind and draw a uploaded GPU mesh. .. py:method:: draw_mesh(mesh, mode) Deprecated: bind and draw through the binding strategy shim. .. py:method:: draw_elements(mode, indices) :staticmethod: .. py:method:: draw_bound_elements(mode, index_count: int, index_type=GLIndexType.UNSIGNED_INT, pointer=None) :staticmethod: .. py:method:: draw_arrays(mode, first: int, count: int) :staticmethod: .. py:method:: draw_arrays_bound_vao(vao: int, mode, first: int, count: int) :classmethod: