firestryker's picture
download
raw
755 Bytes
from OpenGL.arrays import vbo
from OpenGL.GLES2.VERSION import GLES2_2_0
from OpenGL.GLES2.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 [ GLES2_2_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 GLES2_2_0.glBufferData:
self.available = True
Implementation.register()

Xet Storage Details

Size:
755 Bytes
·
Xet hash:
32478a786a220945939ccee34f8d205c1a3a96af0154190ef4f0f7c1524fbb02

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.