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