Download lib/python3.9/site-packages/OpenGL/GL/EXT/blend_logic_op.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_logic_op.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_logic_op.py
-
curl -L -o blend_logic_op.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_logic_op.py
1.15 kB
| '''OpenGL extension EXT.blend_logic_op | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.EXT.blend_logic_op to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| A single additional blending equation is specified using the interface | |
| defined by EXT_blend_minmax. This equation is a simple logical | |
| combination of the source and destination colors, where the specific | |
| logical operation is as specified by LogicOp. While only the XOR | |
| operation may find wide application, the generality of full logical | |
| operations is allowed. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/blend_logic_op.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_logic_op import * | |
| from OpenGL.raw.GL.EXT.blend_logic_op import _EXTENSION_NAME | |
| def glInitBlendLogicOpEXT(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |