Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-03 18:51:46 +0000
committerStijn Buys <ingar@osirion.org>2008-02-03 18:51:46 +0000
commit6011bbb179f72a370411960eafdbbc98e6607f05 (patch)
treec57fe3b9b6e57a6c17d4159ba1b2455a692548b9 /src/render/tga.h
parentb4973888aeaea2dde6058bc06c3f6631349e7f3c (diff)
basic text rendering
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__