Texture Class Reference

Represent an OpenGL texture. More...

#include <texture.h>

Inheritance diagram for Texture:

Object ReferenceCounted

List of all members.

Public Member Functions

 Texture ()
 A constructor that does nothing.
virtual ~Texture ()
 Destroy the texture.
void load (const char *file_name)
 Load a texture from the given file name.
void bind ()
 Bind the texture before use.
virtual void accept (Visitor *visitor)
 Accept a visitor.

Private Attributes

GLuint texture_id
 the ID of the OpenGL texture
std::string file_name
 the name of the file from which the texture was loaded


Detailed Description

Represent an OpenGL texture.

Constructor & Destructor Documentation

Texture::Texture (  ) 

A constructor that does nothing.

virtual Texture::~Texture (  )  [virtual]

Destroy the texture.


Member Function Documentation

virtual void Texture::accept ( Visitor visitor  )  [virtual]

Accept a visitor.

Implements Object.

void Texture::bind (  ) 

Bind the texture before use.

void Texture::load ( const char *  file_name  ) 

Load a texture from the given file name.


Member Data Documentation

std::string Texture::file_name [private]

the name of the file from which the texture was loaded

GLuint Texture::texture_id [private]

the ID of the OpenGL texture


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

Generated on Tue Sep 8 02:20:35 2009 for cglib by  doxygen 1.5.9