Download lib/python3.9/site-packages/OpenGL/GLX/SGI/make_current_read.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GLX/SGI/make_current_read.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GLX/SGI/make_current_read.py
-
curl -L -o make_current_read.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GLX/SGI/make_current_read.py
1.22 kB
| '''OpenGL extension SGI.make_current_read | |
| This module customises the behaviour of the | |
| OpenGL.raw.GLX.SGI.make_current_read to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| The association of the current context with a drawable is extended to allow | |
| separate write and read drawables. This paves the way for allowing | |
| preprocessing of image data in an "off screen" window which is then read | |
| into the visible window for final display. Similarly it sets the | |
| frame-work for direct transfer of video to the GL, by treating the video | |
| as a special kind of read drawable (a.k.a, readable). | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/SGI/make_current_read.txt | |
| ''' | |
| from OpenGL import platform, constant, arrays | |
| from OpenGL import extensions, wrapper | |
| import ctypes | |
| from OpenGL.raw.GLX import _types, _glgets | |
| from OpenGL.raw.GLX.SGI.make_current_read import * | |
| from OpenGL.raw.GLX.SGI.make_current_read import _EXTENSION_NAME | |
| def glInitMakeCurrentReadSGI(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |