diff options
Diffstat (limited to 'src/TGALoader.h')
-rw-r--r-- | src/TGALoader.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/TGALoader.h b/src/TGALoader.h new file mode 100644 index 0000000..83f4476 --- /dev/null +++ b/src/TGALoader.h @@ -0,0 +1,36 @@ +#ifdef OS9 +#pragma once +#endif + +#ifndef _TGA_LOADER_H_ +#define _TGA_LOADER_H_ + + +/**> HEADER FILES <**/ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#ifdef OS9 +#include "gl.h" +#else +#include <GL/gl.h> +#endif + +#include "Support.h" + +/**> DATA STRUCTURES <**/ +typedef struct TGAImageRec +{ + GLubyte *data; // Image Data (Up To 32 Bits) + GLuint bpp; // Image Color Depth In Bits Per Pixel. + GLuint sizeX; + GLuint sizeY; +} TGAImageRec; + + + +/**> FUNCTION PROTOTYPES <**/ +TGAImageRec* LoadTGA( char *filename ); + + +#endif |