LUVis::Texture Class Reference

#include <Texture.h>

Inheritance diagram for LUVis::Texture:

LUVis::Texture1D LUVis::Texture2D LUVis::Texture3D LUVis::TextureRect List of all members.

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)

Detailed Description

Class Texture a Class to handle Textures


Constructor & Destructor Documentation

Texture::Texture ( GLenum  _Type  ) 

Constructor to create a new Texture

Parameters:
_Type needs a Texturetype eg GL_TEXTURE_2D

Texture::Texture ( GLenum  _Type,
GLenum  _genType 
)

Texture::~Texture ( void   ) 


Member Function Documentation

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

Returns:
type

GLuint Texture::GetObject (  ) 

returns the id of the Texture

Returns:
id

GLenum Texture::GetType (  ) 

returns the Type of the Texture

Returns:
type

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


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Wed Jan 17 16:23:55 2007 by  doxygen 1.4.7