#include <texture.h>

Public Member Functions | |
| Texture (const char *id) | |
| virtual | ~Texture () |
| void | SetOverlayFile (const string &path) |
| void | SetOverlayColor (const vector3 &color) |
| ushort_t | GetOriginalWidth () |
| ushort_t | GetOriginalHeight () |
| ushort_t | GetWidth () |
| ushort_t | GetHeight () |
| void | AllowMipMap (bool allow) |
| bool | IsMipMap () const |
| virtual void | Apply () |
| virtual void | ReplaceData (byte_t *data) |
Protected Attributes | |
| string | overlay_file_name |
| vector3 | overlay_color |
| ushort_t | original_width |
| ushort_t | original_height |
| ushort_t | width |
| ushort_t | height |
| bool | mipmap |
| bool | allow_mipmap |
| Texture::Texture | ( | const char * | id | ) |
Constructor.
| Texture::~Texture | ( | ) | [virtual] |
Destructor.
| void Texture::SetOverlayFile | ( | const string & | path | ) | [inline] |
| void Texture::SetOverlayColor | ( | const vector3 & | color | ) | [inline] |
| ushort_t Texture::GetOriginalWidth | ( | ) | [inline] |
| ushort_t Texture::GetOriginalHeight | ( | ) | [inline] |
| ushort_t Texture::GetWidth | ( | ) | [inline] |
| ushort_t Texture::GetHeight | ( | ) | [inline] |
| void Texture::AllowMipMap | ( | bool | allow | ) | [inline] |
| bool Texture::IsMipMap | ( | ) | const [inline] |
| void Texture::Apply | ( | ) | [virtual] |
Activates texture for drawing.
Reimplemented in OpenGLTexture.
| void Texture::ReplaceData | ( | byte_t * | data | ) | [virtual] |
Replaces image data.
Reimplemented in OpenGLTexture.
string Texture::overlay_file_name [protected] |
vector3 Texture::overlay_color [protected] |
ushort_t Texture::original_width [protected] |
ushort_t Texture::original_height [protected] |
ushort_t Texture::width [protected] |
ushort_t Texture::height [protected] |
bool Texture::mipmap [protected] |
bool Texture::allow_mipmap [protected] |
1.5.3