/**

  * namespace TextureLoader written by Justin Klein, 2003

  **/

 

 

/**

  * Creates a texture that may be bound and used!  Params are as follows:

  *

  * -hor specifies the horizontal pixels of the image stored in "data"; for best results, the texture should be

  *  a square with edge-dimensions in powers of two

  * -vert specifies the horizontal pixels of the image stored in "data"

  * -bpp stores the bits per pixel; 3 is RGB, 4 is RGBA.

  * -data is a pointer to the image data to be used

  * -Quality specifies the quality of the texture to generate, and should be one of:

  *         T_LO

  *         T_HI

  *         T_MIPMAPPED_LO

  *         T_MIPMAPPED_HI

  *

  **/

      GLuint Load(int hor, int vert, int bpp, unsigned char* data, Quality quality);

 

/**

  * Takes a 3bpp image and converts it to 4bpp by generating an alpha channel where

  * all black pixels have an alpha set to 0. NOTE: If the image is NOT 3bpp, this will

  * mess up the image!

  **/

      unsigned char* GenerateAlphaValues(int hor, int vert, int bpp, unsigned char* data);