Download lib/python3.9/site-packages/OpenGL/GL/glget.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/glget.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/glget.py
-
curl -L -o glget.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/glget.py
737 Bytes
| """Implementation of the special "glGet" functions | |
| For comparison, here's what a straightforward implementation looks like: | |
| def glGetDoublev( pname ): | |
| "Natural writing of glGetDoublev using standard ctypes" | |
| output = c_double*sizes.get( pname ) | |
| result = output() | |
| result = platform.PLATFORM.GL.glGetDoublev( pname, byref(result) ) | |
| return Numeric.array( result ) | |
| """ | |
| from OpenGL import wrapper | |
| from OpenGL.GL.VERSION import GL_1_1 as _simple | |
| import ctypes | |
| GLenum = ctypes.c_uint | |
| GLsize = GLsizei = ctypes.c_int | |
| __all__ = ( | |
| 'glGetString', | |
| ) | |
| glGetString = _simple.glGetString | |
| glGetString.restype = ctypes.c_char_p | |
| glGetString.__doc__ = """glGetString( constant ) -> Current string value""" | |