summary refs log tree commit diff
path: root/src/TGALoader.h
blob: 8e5bfa0fc5cc92d72bcf8f9cb525924108b65461 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef	_TGA_LOADER_H_
#define	_TGA_LOADER_H_

/**> HEADER FILES <**/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/gl.h>

#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