"""
Configure and enable specific OpenGL capabilities.
This function sets up and enables a predefined set of OpenGL capabilities,
which are required for specific rendering behaviors like depth testing
and lighting.
The function utilizes a list of capabilities from different OpenGL
subsystems (pipeline, fixed-function, and state) and enables them
using the `gl_enable` function from the corresponding API.
"""
from picogl.backend.gl.api.enable import gl_enable_capability_list
from picogl.backend.gl.capability import GLFixedFunctionCapability, GLPipelineCapability
from picogl.backend.gl.state.fill import GLCapability
[docs]
def gl_setup_capabilities():
"""setup capabilities"""
gl_enable_capability_list(
[
GLPipelineCapability.DEPTH_TEST,
GLFixedFunctionCapability.LIGHTING,
GLFixedFunctionCapability.LIGHT0,
GLCapability.COLOR_MATERIAL,
]
)