]> git.jsancho.org Git - lugaru.git/blob - Source/TGALoader.h
Added newline to all the source/headers in Source.
[lugaru.git] / Source / TGALoader.h
1 #pragma once
2
3 #ifndef _TGA_LOADER_H_
4 #define _TGA_LOADER_H_
5
6
7 /**> HEADER FILES <**/
8 #include <stdlib.h>
9 #include <stdio.h>
10 #include <string.h>
11 #ifdef WIN32
12 #define WIN32_LEAN_AND_MEAN
13 #define Polygon WinPolygon
14 #include <windows.h>
15 #undef Polygon
16 #include <gl/gl.h>
17 #else
18 #include "gamegl.h"
19 //      #include "MoreFilesX.h"
20 #endif
21
22 //#include <stdbool.h>
23 //#include <QuickTime.h>
24
25 /**> DATA STRUCTURES <**/
26 typedef struct TGAImageRec
27 {
28         GLubyte *data;          // Image Data (Up To 32 Bits)
29         GLuint  bpp;            // Image Color Depth In Bits Per Pixel.
30         GLuint  sizeX;
31         GLuint  sizeY;
32 }       TGAImageRec;
33
34 bool upload_image(const unsigned char* filePath, bool hasalpha);
35
36 /**> FUNCTION PROTOTYPES <**/
37 TGAImageRec*    LoadTGA( char *filename );
38
39
40 #endif
41