#include <texture.h>
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 |
Texture::Texture | ( | ) |
A constructor that does nothing.
virtual Texture::~Texture | ( | ) | [virtual] |
Destroy the texture.
void Texture::bind | ( | ) |
Bind the texture before use.
void Texture::load | ( | const char * | file_name | ) |
Load a texture from the given file name.
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