summary refs log tree commit diff
path: root/src/TGALoader.h
blob: ab26f88789da9ee0268a925a747d2aa89f67bbef (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
25
26
27
28
29
30
31
32
#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