picogl.backend.gl.api.draw.helper

A module for OpenGL draw operations using PicoGL-specific enumerations or raw gl constants.

This module provides functions to issue OpenGL draw calls, including support for custom draw modes and index types. It simplifies the process of working with OpenGL by handling conversion between PicoGL enums and raw gl constants, as well as managing pointer data for indexed draw.

Functions: - gl_draw_arrays: Wrapper for glDrawArrays supporting PicoGL enums or raw gl constants. - gl_draw_elements: Wrapper for glDrawElements with support for custom index pointers or offsets.

Functions

gl_enum(value) → Any

gl enum

draw_pointer(pointer, offset) → Any

draw pointer

Module Contents

picogl.backend.gl.api.draw.helper.gl_enum(value: Any) → Any[source]

gl enum

picogl.backend.gl.api.draw.helper.draw_pointer(pointer: Any | None, offset: int) → Any[source]

draw pointer