00001 #ifndef TGAManip_h
00002 #define TGAManip_h
00003
00006
00007
00008 #define TGA_RGB 2 // This tells us it's a normal RGB (really BGR) file
00009 #define TGA_A 3 // This tells us it's a ALPHA file
00010 #define TGA_RLE 10 // This tells us that the targa is Run-Length Encoded (RLE)
00011
00012
00013 struct tImageTGA
00014 {
00015 int channels;
00016 int sizeX;
00017 int sizeY;
00018 unsigned char *data;
00019 };
00020
00021
00022 int LoadTGA(const char *filename, tImageTGA *);
00023
00024
00025 #endif