#include <tiletex.h>
Public Member Functions | |
GenericTexture () | |
virtual | ~GenericTexture () |
bool | load_texture (const char *filename, MipMapOptions mip_opt, tex_proc_func proc=NULL, bool force_power_of_two=true) |
bool | load_texture (unsigned char *pixels, unsigned int w, unsigned int h, MipMapOptions mip_opt) |
void | unload_texture () |
unsigned int | width () const |
unsigned int | height () const |
void | bind () const |
unsigned int | orig_width () const |
unsigned int | orig_height () const |
Protected Attributes | |
unsigned int | m_handle |
unsigned int | m_width |
unsigned int | m_height |
unsigned int | m_orig_width |
unsigned int | m_orig_height |
GenericTexture::GenericTexture | ( | ) |
virtual GenericTexture::~GenericTexture | ( | ) | [virtual] |
bool GenericTexture::load_texture | ( | const char * | filename, | |
MipMapOptions | mip_opt, | |||
tex_proc_func | proc = NULL , |
|||
bool | force_power_of_two = true | |||
) |
bool GenericTexture::load_texture | ( | unsigned char * | pixels, | |
unsigned int | w, | |||
unsigned int | h, | |||
MipMapOptions | mip_opt | |||
) |
void GenericTexture::unload_texture | ( | ) |
unsigned int GenericTexture::width | ( | ) | const [inline] |
unsigned int GenericTexture::height | ( | ) | const [inline] |
void GenericTexture::bind | ( | ) | const |
unsigned int GenericTexture::orig_width | ( | ) | const [inline] |
unsigned int GenericTexture::orig_height | ( | ) | const [inline] |
unsigned int GenericTexture::m_handle [protected] |
unsigned int GenericTexture::m_width [protected] |
unsigned int GenericTexture::m_height [protected] |
unsigned int GenericTexture::m_orig_width [protected] |
unsigned int GenericTexture::m_orig_height [protected] |