|
Uranium
Application Framework
|
Public Member Functions | |
| None | __init__ (self, QAbstractOpenGLFunctions open_gl_binding_object) |
| int | getTextureId (self) |
| bind (self, texture_unit) | |
| release (self, texture_unit) | |
| load (self, file_name) | |
| setImage (self, image) | |
Protected Attributes | |
| _qt_texture | |
| _gl | |
| _file_name | |
| _image | |
A class describing the interface to be used for texture objects. This interface should be implemented by OpenGL implementations to handle texture objects.
| UM.View.GL.Texture.Texture.bind | ( | self, | |
| texture_unit | |||
| ) |
Bind the texture to a certain texture unit. :param texture_unit: The texture unit to bind to.
| int UM.View.GL.Texture.Texture.getTextureId | ( | self | ) |
Get the OpenGL ID of the texture.
| UM.View.GL.Texture.Texture.load | ( | self, | |
| file_name | |||
| ) |
Load an image and upload it to the texture. :param file_name: The file name of the image to load.
| UM.View.GL.Texture.Texture.release | ( | self, | |
| texture_unit | |||
| ) |
Release the texture from a certain texture unit. :param texture_unit: The texture unit to release from.