Main Page | Class List | File List

TGAManip.h

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 // This is our image structure for our targa data
00013 struct tImageTGA
00014 {
00015         int channels;       // The channels in the image (3 = RGB : 4 = RGBA)
00016         int sizeX;          // The width of the image in pixels
00017         int sizeY;          // The height of the image in pixels
00018         unsigned char *data;    // The image pixel data
00019 };
00020 
00021 
00022 int LoadTGA(const char *filename, tImageTGA *);
00023 
00024 
00025 #endif 

Generated on Mon Jan 26 22:13:13 2004 for fluid3 by doxygen 1.3.5