Inherits from
- ArrayInterfaceImage: pygarrayimage.arrayimage.ArrayInterfaceImage
Method summary
- blit_to_texture(self, target, level, x, y, z, internalformat = None)
- create_texture(self, cls)
Methods
- blit_to_texture(self, target, level, x, y, z, internalformat = None)
Draw this image to to the currently bound texture at target.
If internalformat is specified, glTexImage is used to initialise the texture; otherwise, glTexSubImage is used to update a region.
- create_texture(self, cls)
Create a texture containing this image.
If the image's dimensions are not powers of 2, a TextureRegion of a larger Texture will be returned that matches the dimensions of this image.
Parameters: - cls : class (subclass of Texture)
Class to construct.
rtype: cls or cls.region_class