Beispiel #1
0
 def glGetCompressedTexImage( target, level, img=None ):
     """Retrieve a compressed texture image"""
     if img is None:
         length = glget.glGetTexLevelParameteriv(
             target, 0, 
             simple.GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB, 
         )
         img = arrays.ArrayDataType.zeros( (length,), constants.GL_UNSIGNED_BYTE )
     return simple.glGetCompressedTexImage(target, 0, img);
 def glGetCompressedTexImage( target, level, img=None ):
     """Retrieve a compressed texture image"""
     if img is None:
         length = glget.glGetTexLevelParameteriv(
             target, 0,
             simple.GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB,
         )
         img = arrays.ArrayDataType.zeros( (length,), constants.GL_UNSIGNED_BYTE )
     return simple.glGetCompressedTexImage(target, 0, img);