/* www.morrowland.com apron@morrowland.com */ #ifndef _INCLUDED_RENDER_TGA_H__ #define _INCLUDED_RENDER_TGA_H__ #include "GL/gl.h" #define TGA_RGB 2 #define TGA_A 3 #define TGA_RLE 10 namespace render { class TGA { public: typedef struct { int channels; int size_x; int size_y; unsigned char *data; } image; static void texture(GLuint textureArray[], const char *filename, int textureID); protected: static image *load(const char *filename); }; } #endif //_INCLUDED_RENDER_TGA_H__