#include <Texture.h>
Inheritance diagram for LUVis::Texture:

Public Member Functions | |
| Texture (GLenum _Type) | |
| Texture (GLenum _Type, GLenum _genType) | |
| ~Texture (void) | |
| void | bind () |
| Binds a Texture. | |
| void | unbind () |
| unbinds a Texture | |
| void | active () |
| activates a Texture | |
| void | inactive () |
| deactivates a Texture | |
| void | destroy () |
| unbinds and removes texture out of memory | |
| void | enable () |
| enables the texture type | |
| void | disable () |
| disables the texture type | |
| GLuint | GetObject () |
| GLenum | GetType () |
| GLenum | GetgenType () |
| bool | Is1D () |
| bool | Is2D () |
| bool | Is3D () |
| void | buildMipmap () |
| void | buildTextureFilter (int min, int mag) |
| void | buildTextureFilter (int minmag) |
| void | buildTextureWrap (int wrap_s) |
| void | buildTextureWrap (int wrap_s, int wrap_t) |
| void | buildTextureWrap (int wrap_s, int wrap_t, int wrap_r) |
| void | buildTexture (int internalformat, int sizeX, int format, int type, void *data) |
| void | buildTexture (int internalformat, int sizeX, int sizeY, int format, int type, void *data) |
| void | buildTexture (int internalformat, int sizeX, int sizeY, int sizeZ, int format, int type, void *data) |
Protected Attributes | |
| GLenum | Type |
| Type of the Texture (GL_TEXTURE_2D/GL_TEXTURE_RECTANGLEARB...). | |
| GLenum | genType |
| general Type of the Texture (GL_TEXTURE_2D/...) | |
| GLuint | Object |
| ID of the Texture. | |
Private Member Functions | |
| void | initialize (GLenum _Type, GLenum _genType) |
| inizialises a texture (called in constructor) | |
| Texture::Texture | ( | GLenum | _Type | ) |
Constructor to create a new Texture
| _Type | needs a Texturetype eg GL_TEXTURE_2D |
| Texture::Texture | ( | GLenum | _Type, | |
| GLenum | _genType | |||
| ) |
| Texture::~Texture | ( | void | ) |
| void Texture::active | ( | ) |
activates a Texture
| void Texture::bind | ( | ) |
Binds a Texture.
| void Texture::buildMipmap | ( | ) |
| void Texture::buildTexture | ( | int | internalformat, | |
| int | sizeX, | |||
| int | sizeY, | |||
| int | sizeZ, | |||
| int | format, | |||
| int | type, | |||
| void * | data | |||
| ) |
| void Texture::buildTexture | ( | int | internalformat, | |
| int | sizeX, | |||
| int | sizeY, | |||
| int | format, | |||
| int | type, | |||
| void * | data | |||
| ) |
| void Texture::buildTexture | ( | int | internalformat, | |
| int | sizeX, | |||
| int | format, | |||
| int | type, | |||
| void * | data | |||
| ) |
| void Texture::buildTextureFilter | ( | int | minmag | ) |
| void Texture::buildTextureFilter | ( | int | min, | |
| int | mag | |||
| ) |
| void Texture::buildTextureWrap | ( | int | wrap_s, | |
| int | wrap_t, | |||
| int | wrap_r | |||
| ) |
| void Texture::buildTextureWrap | ( | int | wrap_s, | |
| int | wrap_t | |||
| ) |
| void Texture::buildTextureWrap | ( | int | wrap_s | ) |
| void Texture::destroy | ( | ) |
unbinds and removes texture out of memory
| void Texture::disable | ( | ) |
disables the texture type
| void Texture::enable | ( | ) |
enables the texture type
| GLenum Texture::GetgenType | ( | ) |
returns the genType of the Texture
| GLuint Texture::GetObject | ( | ) |
returns the id of the Texture
| GLenum Texture::GetType | ( | ) |
returns the Type of the Texture
| void Texture::inactive | ( | ) |
deactivates a Texture
| void Texture::initialize | ( | GLenum | _Type, | |
| GLenum | _genType | |||
| ) | [private] |
inizialises a texture (called in constructor)
| bool Texture::Is1D | ( | ) |
| bool Texture::Is2D | ( | ) |
| bool Texture::Is3D | ( | ) |
| void Texture::unbind | ( | ) |
unbinds a Texture
GLenum LUVis::Texture::genType [protected] |
general Type of the Texture (GL_TEXTURE_2D/...)
GLuint LUVis::Texture::Object [protected] |
ID of the Texture.
GLenum LUVis::Texture::Type [protected] |
Type of the Texture (GL_TEXTURE_2D/GL_TEXTURE_RECTANGLEARB...).
1.4.7