Download lib/python3.9/site-packages/OpenGL/GL/SGIX/async_pixel.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/SGIX/async_pixel.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/SGIX/async_pixel.py
-
curl -L -o async_pixel.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/SGIX/async_pixel.py
1.32 kB
| '''OpenGL extension SGIX.async_pixel | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.SGIX.async_pixel to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension introduces a new asynchronous mode for texture | |
| download, pixel download and pixel readback commands. It allows | |
| programs to transfer textures or images between the host and the | |
| graphics accelerator in parallel with the execution of other | |
| graphics commands (possibly taking advantage of a secondary path | |
| to the graphics accelerator). It also allows programs to issue | |
| non-blocking pixel readback commands that return immediately after | |
| they are issued so that the program can issue other commands while | |
| the readback takes place. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/SGIX/async_pixel.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.SGIX.async_pixel import * | |
| from OpenGL.raw.GL.SGIX.async_pixel import _EXTENSION_NAME | |
| def glInitAsyncPixelSGIX(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |