Download lib/python3.9/site-packages/OpenGL/GL/EXT/blend_subtract.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_subtract.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_subtract.py
-
curl -L -o blend_subtract.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/EXT/blend_subtract.py
1.1 kB
| '''OpenGL extension EXT.blend_subtract | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.EXT.blend_subtract to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| Two additional blending equations are specified using the interface | |
| defined by EXT_blend_minmax. These equations are similar to the | |
| default blending equation, but produce the difference of its left | |
| and right hand sides, rather than the sum. Image differences are | |
| useful in many image processing applications. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/EXT/blend_subtract.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_subtract import * | |
| from OpenGL.raw.GL.EXT.blend_subtract import _EXTENSION_NAME | |
| def glInitBlendSubtractEXT(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |