/*
  Copyright (C) 1999
  For non-commercial use only.

    File  : tga.h
  Date  : 05/05/1999
  Author  : Nate Miller
  Contact : vandals1@home.com
*/

// Error Codes
#define TGA_FILE_NOT_FOUND  13 /* file was not found */
#define TGA_BAD_IMAGE_TYPE  14 /* color mapped image or image is not uncompressed */
#define TGA_BAD_DIMENSION   15 /* dimension is not a power of 2 */
#define TGA_BAD_BITS        16 /* image bits is not 8, 24 or 32 */
#define TGA_BAD_DATA        17 /* image data could not be loaded */

// Returns 0 if all is well, otherwise returns an error code
//
// name is the filename to load the texture from
//
// id is the gl texture to bind to
//
// If build_mipmaps is 1, the loader uses gluBuildMipmaps to build
// a mipmap set for the texture.  This is a bit slower but generally
// allows files of any size to be loaded.
int loadTGA (char *name, int id, int build_mipmaps=0); 


