Download lib/python3.9/site-packages/OpenGL/GL/ATI/texture_float.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/ATI/texture_float.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/ATI/texture_float.py
-
curl -L -o texture_float.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/ATI/texture_float.py
1.14 kB
| '''OpenGL extension ATI.texture_float | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.ATI.texture_float to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension adds texture internal formats with 32 and 16 bit | |
| floating-point components. The 32 bit floating-point components | |
| are in the standard IEEE float format. The 16 bit floating-point | |
| components have 1 sign bit, 5 exponent bits, and 10 mantissa bits. | |
| Floating-point components are clamped to the limits of the range | |
| representable by their format. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/ATI/texture_float.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.ATI.texture_float import * | |
| from OpenGL.raw.GL.ATI.texture_float import _EXTENSION_NAME | |
| def glInitTextureFloatATI(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |