#include <Texture.h>
Public Member Functions | |
| Texture () | |
| Standard Constructor. | |
| Texture (const string &filename) | |
| Constructor. | |
| Texture (const Texture &source) | |
| Copy-constructor. | |
| Texture (const string &filename, const bool &noRepeat) | |
| Enhanced Constructor. | |
| ~Texture () | |
| Destructor. | |
| void | bind () |
| Bind texture in OpenGL. | |
| const string & | getFilename () const |
| Gets texture filename. | |
| GLuint | getGlName () |
| Gets OpenGL texture name. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
| Texture | operator= (const Texture &tex) |
| Operator =. | |
Private Attributes | |
| struct textureEntry * | data |
| data of the texture | |
Provides image loading, saving and texture binding.
| Texture::Texture | ( | ) |
Standard Constructor.
| Texture::Texture | ( | const string & | filename | ) |
Constructor.
If an invalid filename was choosen, a default image will be generated
| filename | The image to be loaded |
| Texture::Texture | ( | const Texture & | source | ) |
Copy-constructor.
Duplicates a texture
| Texture::Texture | ( | const string & | filename, | |
| const bool & | repeat | |||
| ) |
Enhanced Constructor.
If an invalid filename was choosen, a default image will be generated
| filename | The image to be loaded | |
| repeat | Tells if texture is a repaetable tile |
| Texture::~Texture | ( | ) |
Destructor.
Destroys the Texture.
| void Texture::bind | ( | ) |
Bind texture in OpenGL.
Signals OpenGL to use this one as active texture
| const string & Texture::getFilename | ( | ) | const |
Gets texture filename.
| GLuint Texture::getGlName | ( | ) |
Gets OpenGL texture name.
| string Texture::toString | ( | ) | const [virtual] |
Returns a textual representation.
| string Texture::className | ( | ) | const [virtual] |
Returns the class name of the object.
| enum classId Texture::classId | ( | ) | const [virtual] |
Returns the class id of the object.
struct textureEntry* Texture::data [read, private] |
data of the texture
1.5.6