OpenGLContext.texture

Resource-manager for textures (with PIL conversions)

Functions

Classes

Holder for an OpenGL compiled texture
This object holds onto a texture until it is deleted. Provides methods for storing raw data or PIL images (store and fromPIL respectively)
Attributes: components -- number of components in the image, if 0, then there is no currently stored image texture -- OpenGL textureID as returned by a call to glGenTextures(1), will be freed when the Texture object is deleted format -- GL_RGB/GL_RGBA/GL_LUMINANCE