picogl.backend.gl.capability ============================ .. py:module:: picogl.backend.gl.capability .. autoapi-nested-parse:: 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. Attributes ---------- .. autoapisummary:: picogl.backend.gl.capability.CAP_MAP picogl.backend.gl.capability.BLEND_FACTOR_MAP picogl.backend.gl.capability.FACE_MAP Classes ------- .. autoapisummary:: picogl.backend.gl.capability.GLPipelineCapability picogl.backend.gl.capability.GLFixedFunctionCapability picogl.backend.gl.capability.GLBlendTarget picogl.backend.gl.capability.GLBlendFactor picogl.backend.gl.capability.GLBlendFunc picogl.backend.gl.capability.GLMaterialFace picogl.backend.gl.capability.PhongMaterial Module Contents --------------- .. py:class:: GLPipelineCapability Bases: :py:obj:`enum.IntEnum` gl Capabilities .. py:attribute:: BLEND .. py:attribute:: DEPTH_TEST .. py:attribute:: CULL_FACE .. py:class:: GLFixedFunctionCapability Bases: :py:obj:`enum.IntEnum` gl Fixed Function Capabilities .. py:attribute:: LIGHTING .. py:attribute:: LIGHT0 .. py:attribute:: LIGHT1 .. py:attribute:: LIGHT2 .. py:attribute:: LIGHT3 .. py:attribute:: LIGHT4 .. py:class:: GLBlendTarget Bases: :py:obj:`enum.IntEnum` gl Blend Dest .. py:attribute:: BLEND_SRC .. py:attribute:: BLEND_DST .. py:class:: GLBlendFactor Bases: :py:obj:`enum.IntEnum` gl Blend Factor .. py:attribute:: SRC_ALPHA .. py:attribute:: ONE_MINUS_SRC_ALPHA .. py:attribute:: ONE .. py:attribute:: ZERO .. py:method:: from_gl(param: int) -> GLBlendFactor :classmethod: .. py:class:: GLBlendFunc gl Blend Function .. py:attribute:: src :type: GLBlendFactor .. py:attribute:: dst :type: GLBlendFactor .. py:class:: GLMaterialFace Bases: :py:obj:`enum.IntEnum` gl Material Face .. py:attribute:: FRONT .. py:attribute:: BACK .. py:attribute:: FRONT_AND_BACK .. py:class:: PhongMaterial Phong Material .. py:attribute:: ambient :type: Sequence[float] :value: (0.2, 0.2, 0.2, 1.0) .. py:attribute:: diffuse :type: Sequence[float] :value: (0.8, 0.8, 0.8, 1.0) .. py:attribute:: specular :type: Sequence[float] :value: (0.0, 0.0, 0.0, 1.0) .. py:attribute:: shininess :type: float :value: 0.0 .. py:data:: CAP_MAP .. py:data:: BLEND_FACTOR_MAP .. py:data:: FACE_MAP