picogl.backend.modern.core.elements.draw

Functions

draw_elements(vao, index_count[, mode, index_type])

Helper method to bind a VAO and draw its elements.

Module Contents

picogl.backend.modern.core.elements.draw.draw_elements(vao: int, index_count: int, mode: int = GL_LINES, index_type: int = GL_UNSIGNED_INT)[source]

Helper method to bind a VAO and draw its elements.

Parameters:
  • vao – Vertex Array Object to bind

  • index_count – Number of indices to draw

  • mode – Drawing gl_mode (e.g., GL_LINES, GL_TRIANGLES)

  • index_type – Type of indices (e.g., GL_UNSIGNED_INT)