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