Uranium
Application Framework
Loading...
Searching...
No Matches
UM.View.GL.Texture.Texture Class Reference

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

Inherits object.

Public Member Functions

 __init__ (self, open_gl_binding_object)
 
 getTextureId (self)
 Get the OpenGL ID of the texture.
 
 bind (self, texture_unit)
 Bind the texture to a certain texture unit.
 
 release (self, texture_unit)
 Release the texture from a certain texture unit.
 
 load (self, file_name)
 Load an image and upload it to the texture.
 
 setImage (self, image)
 

Protected Attributes

 _qt_texture
 
 _gl
 
 _file_name
 
 _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()

UM.View.GL.Texture.Texture.bind (   self,
  texture_unit 
)

Bind the texture to a certain texture unit.

Parameters
texture_unitThe texture unit to bind to.

◆ load()

UM.View.GL.Texture.Texture.load (   self,
  file_name 
)

Load an image and upload it to the texture.

Parameters
file_nameThe file name of the image to load.

◆ release()

UM.View.GL.Texture.Texture.release (   self,
  texture_unit 
)

Release the texture from a certain texture unit.

Parameters
texture_unitThe texture unit to release from.

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