picogl.backend.modern.core.elements.draw
draw elements
Functions
|
Bind a VAO and issue glDrawElements for the bound element buffer. |
Module Contents
- picogl.backend.modern.core.elements.draw.draw_elements(vao: int, index_count: int, mode: int = GLDrawMode.TRIANGLES, index_type: int = GLNumeric.UNSIGNED_INT, pointer: Any | None = None) None[source]
Bind a VAO and issue glDrawElements for the bound element buffer.
vao: Vertex Array Object to bind
index_count: Number of indices to draw
mode: GL draw mode (e.g., GL_LINES, GL_TRIANGLES)
index_type: Type of indices (e.g., GL_UNSIGNED_INT)
pointer: Optional client-side index data; if None, the bound EBO is used