#ifndef _LOADTGA_HH_ #define _LOADTGA_HH_ #include #include // H�mtad fr�n // http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg2.htm // N�got �ndrad av oss... #include #include #include //#include #define byte unsigned char #define WORD unsigned short int // These defines are used to tell us about the type of TARGA file it is #define TGA_RGB 2 // This tells us it's a normal RGB (really BGR) file #define TGA_A 3 // This tells us it's a ALPHA file #define TGA_RLE 10 // This tells us that the targa is Run-Length Encoded (RLE) // This is our image structure for our targa data struct tImageTGA { int channels; // The channels in the image (3 = RGB : 4 = RGBA) int sizeX; // The width of the image in pixels int sizeY; // The height of the image in pixels unsigned char * data; // The image pixel data int textureType; // *egen* }; // Funktioner tImageTGA * LoadTGA( const char * filename ); #endif