blob: d4449a80cb52585139557bd28fd90316bf1a9159 (
plain)
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
33
34
35
36
|
/*
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 bool texture(GLuint textureArray[], const char *filename, int textureID);
protected:
static image *load(const char *filename);
};
}
#endif //_INCLUDED_RENDER_TGA_H__
|