Download lib/python3.9/site-packages/OpenGL/GL/vboimplementation.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/vboimplementation.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/OpenGL/GL/vboimplementation.py
-
curl -L -o vboimplementation.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/OpenGL/GL/vboimplementation.py
694 Bytes
| from OpenGL.arrays import vbo | |
| from OpenGL.GL.VERSION import GL_1_5, GL_3_0, GL_3_1 | |
| class Implementation( vbo.Implementation ): | |
| """OpenGL-based implementation of VBO interfaces""" | |
| def __init__( self ): | |
| for name in self.EXPORTED_NAMES: | |
| found = False | |
| for source in (GL_1_5,GL_3_0, GL_3_1): | |
| try: | |
| setattr( self, name, getattr( source, name )) | |
| except AttributeError as err: | |
| pass | |
| else: | |
| found = True | |
| break | |
| assert found, name | |
| if GL_1_5.glBufferData: | |
| self.available = True | |
| Implementation.register() | |