picogl.backend.gl.enums.draw_mode

This module defines enumeration classes mapping various OpenGL constants to more easily readable and manageable Python enumerations. These enums facilitate interactions with OpenGL by providing structured and semantically meaningful groupings for matrix modes, clip planes, bit masks, data types, usage hints, buffer targets, and draw primitives.

Each enumeration corresponds to a specific set of OpenGL constants and can be directly utilized when working with OpenGL APIs.

Classes

GLDrawMode

gl Draw Mode

Module Contents

class picogl.backend.gl.enums.draw_mode.GLDrawMode[source]

Bases: enum.IntEnum

gl Draw Mode

QUAD_STRIP[source]
TRIANGLE_STRIP[source]
TRIANGLES[source]
POINTS[source]
LINE_STRIP[source]
QUADS[source]
POLYGON[source]
LINES[source]
LINE_LOOP[source]
LINE_STRIP_ADJACENCY[source]
LINES_ADJACENCY[source]
TRIANGLE_STRIP_ADJACENCY[source]
TRIANGLES_ADJACENCY[source]
PATCHES[source]
classmethod choices()[source]