Texture: abstraction to handle GL texture, and region
Bases: object
Handle a OpenGL texture. This class can be used to create simple texture or complex texture based on ImageData.
Bind the texture to current opengl state
Blit a buffer into a texture.
| Parameters : |
|
|---|
Replace a whole texture with a image data
Create a texture based on size.
Create a texture from an ImageData class
Do the appropriate glDisable()
Do the appropriate glEnable()
Flip tex_coords for vertical displaying
Return a part of the texture, from (x,y) with (width,height) dimensions
Return the height of the texture (readonly)
Return the OpenGL ID of the texture (readonly)
Get/set the GL_TEXTURE_MAG_FILTER property
Get/set the GL_TEXTURE_MIN_FILTER property
Return True if the texture have mipmap enabled (readonly)
Return True if the texture is a rectangle texture (readonly)
Return the OpenGL target of the texture (readonly)
Return the width of the texture (readonly)
Get/set the GL_TEXTURE_WRAP_S,T property
Bases: pymt.texture.Texture
Handle a region of a Texture class. Useful for non power-of-2 texture handling.