Source code for picogl.backend.gl.glfunc

"""
Module for representing and managing OpenGL capabilities, fixed-function states, material
properties, and blend functions.

This module provides a collection of enumerations and data classes to facilitate the
representation of OpenGL states such as pipeline capabilities, blend factors, and material
properties. The module includes mappings between the defined enums and their OpenGL
integer constants for easy usage in OpenGL-related operations.
"""

from enum import IntEnum


from OpenGL.raw.GL.VERSION.GL_1_0 import (
    GL_NEVER,
    GL_LESS,
    GL_EQUAL,
    GL_LEQUAL,
    GL_GREATER,
    GL_GEQUAL,
    GL_ALWAYS,
)


[docs] class GLDepthFunc(IntEnum): """GL Depth Comparison Function"""
[docs] BLEND = GL_NEVER
[docs] LESS = GL_LESS
[docs] EQUAL = GL_EQUAL
[docs] LEQUAL = GL_LEQUAL
[docs] GREATER = GL_GREATER
[docs] GEQUAL = GL_GEQUAL
[docs] ALWAYS = GL_ALWAYS