Download lib/python3.9/site-packages/OpenGL/GL/EXT/blend_equation_separate.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
-
curl -L -o blend_equation_separate.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
1.47 kB
| '''OpenGL extension EXT.blend_equation_separate | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.EXT.blend_equation_separate to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| EXT_blend_func_separate introduced separate RGB and alpha blend | |
| factors. EXT_blend_minmax introduced a distinct blend equation for | |
| combining source and destination blend terms. (EXT_blend_subtract & | |
| EXT_blend_logic_op added other blend equation modes.) OpenGL 1.4 | |
| integrated both functionalities into the core standard. | |
| While there are separate blend functions for the RGB and alpha blend | |
| factors, OpenGL 1.4 provides a single blend equation that applies | |
| to both RGB and alpha portions of blending. | |
| This extension provides a separate blend equation for RGB and alpha | |
| to match the generality available for blend factors. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/blend_equation_separate.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GL import _types, _glgets | |
| from OpenGL.raw.GL.EXT.blend_equation_separate import * | |
| from OpenGL.raw.GL.EXT.blend_equation_separate import _EXTENSION_NAME | |
| def glInitBlendEquationSeparateEXT(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |