Uranium
Application Framework
UM.View.GL.Texture.Texture Class Reference

Public Member Functions

def __init__
 
def getTextureId (self)
 
def bind (self, texture_unit)
 
def release (self, texture_unit)
 
def load (self, file_name)
 
def setImage (self, image)
 

Detailed Description

A class describing the interface to be used for texture objects.

This interface should be implemented by OpenGL implementations to handle texture
objects.

Member Function Documentation

◆ bind()

def 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.

◆ getTextureId()

def UM.View.GL.Texture.Texture.getTextureId (   self,
  int 
)
Get the OpenGL ID of the texture.

◆ load()

def 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.

◆ release()

def 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.

The documentation for this class was generated from the following file: