Download lib/python3.9/site-packages/OpenGL/GL/SUN/mesh_array.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/SUN/mesh_array.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/SUN/mesh_array.py
-
curl -L -o mesh_array.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/SUN/mesh_array.py
1.12 kB
| '''OpenGL extension SUN.mesh_array | |
| This module customises the behaviour of the | |
| OpenGL.raw.GL.SUN.mesh_array to provide a more | |
| Python-friendly API | |
| Overview (from the spec) | |
| This extension defines a new mesh primitive. | |
| The primitive can only be used with vertex arrays and cannot be used in | |
| immediate mode. The application must arrange the vertices in row major format. | |
| For example if a quad mesh is 4 vertices wide the, vertices in the first | |
| row are the first 4 vertices and vertices in the second row are vertices 5 | |
| through 8. | |
| The official definition of this extension is available here: | |
| http://www.opengl.org/registry/specs/SUN/mesh_array.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.SUN.mesh_array import * | |
| from OpenGL.raw.GL.SUN.mesh_array import _EXTENSION_NAME | |
| def glInitMeshArraySUN(): | |
| '''Return boolean indicating whether this extension is available''' | |
| from OpenGL import extensions | |
| return extensions.hasGLExtension( _EXTENSION_NAME ) | |
| ### END AUTOGENERATED SECTION |