Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/tga.h')
-rw-r--r--src/render/tga.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/render/tga.h b/src/render/tga.h
new file mode 100644
index 0000000..f24ab31
--- /dev/null
+++ b/src/render/tga.h
@@ -0,0 +1,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 void texture(GLuint textureArray[], const char *filename, int textureID);
+
+protected:
+ static image *load(const char *filename);
+};
+
+}
+
+#endif //_INCLUDED_RENDER_TGA_H__