GenericTexture Class Reference

#include <tiletex.h>

Inheritance diagram for GenericTexture:

Inheritance graph
[legend]

List of all members.

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


Constructor & Destructor Documentation

GenericTexture::GenericTexture (  ) 

virtual GenericTexture::~GenericTexture (  )  [virtual]


Member Function Documentation

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]


Member Data Documentation

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]


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

Generated on Thu Jan 13 13:34:04 2011 by  doxygen 1.5.6