Download lib/python3.9/site-packages/OpenGL/GL/IBM/static_data.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/IBM/static_data.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/IBM/static_data.py
-
curl -L -o static_data.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/IBM/static_data.py
1.42 kB
| '''OpenGL extension IBM.static_data | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.IBM.static_data to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| The OpenGL specification requires that data be bound at call time. The | |
| IBM_static_data extension relaxes the bind-at-call semantics allowing | |
| an implementation to dereference pointers some time after the | |
| corresponding calls. | |
| Because of the bind-at-call sematics of standard OpenGL, an | |
| implementation is required to either copy or fully process data at the | |
| time it is provided by the application. Copying data substantially | |
| increases the demands on the memory subsystem; processing the data may | |
| result in ineffective amortization of fixed costs. Neither copying nor | |
| processing allows multiple rendering threads to operate on the original | |
| data. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/IBM/static_data.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.IBM.static_data import * | |
| from OpenGL.raw.GL.IBM.static_data import _EXTENSION_NAME | |
| def glInitStaticDataIBM(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |