LUVis::Texture Class Reference

#include <Texture.h>

Inheritance diagram for LUVis::Texture:

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

Public Member Functions

 Texture (GLuint _Type)
 ID of the Texture.
 ~Texture (void)
void bind ()
 Binds a Texture.
void unbind ()
 unbinds a Texture
void active ()
 activates a Texture
void inactive ()
 deactivates a Texture
void release ()
 releases a Texture
GLuint GetObject ()
GLuint GetType ()

Protected Attributes

GLuint Type
GLuint Object
 Type of the Texture (GL_TEXTURE_2D/...).

Private Member Functions

void initialize ()
 inizialises a texture (called in constructor)
void destroy ()
 unbinds and removes texture out of memory

Detailed Description

Class Texture a Class to handle Textures


Constructor & Destructor Documentation

Texture::Texture ( GLuint  _Type  ) 

ID of the Texture.

Constructor to create a new Texture

Parameters:
_Type needs a Texturetype eg GL_TEXTURE_2D

Texture::~Texture ( void   ) 


Member Function Documentation

void Texture::active (  ) 

activates a Texture

void Texture::bind (  ) 

Binds a Texture.

void Texture::destroy (  )  [private]

unbinds and removes texture out of memory

GLuint Texture::GetObject (  ) 

returns the id of the Texture

Returns:
id

GLuint Texture::GetType (  ) 

returns the Type of the Texture

Returns:
type

void Texture::inactive (  ) 

deactivates a Texture

void Texture::initialize (  )  [private]

inizialises a texture (called in constructor)

void Texture::release (  ) 

releases a Texture

void Texture::unbind (  ) 

unbinds a Texture


Member Data Documentation

GLuint LUVis::Texture::Object [protected]

Type of the Texture (GL_TEXTURE_2D/...).

GLuint LUVis::Texture::Type [protected]


The documentation for this class was generated from the following files:
Generated on Wed Dec 6 16:25:59 2006 by  doxygen 1.4.7