summary refs log tree commit diff
path: root/src/Text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.h')
-rw-r--r--src/Text.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Text.h b/src/Text.h
new file mode 100644
index 0000000..99e8a6c
--- /dev/null
+++ b/src/Text.h
@@ -0,0 +1,32 @@
+#ifndef _TEXT_H_
+#define _TEXT_H_
+
+
+/**> HEADER FILES <**/
+#include "Quaternions.h"
+#ifdef OS9 
+#include <gl.h>
+#include <glu.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif
+#include "Files.h"
+#include "Quaternions.h"
+
+class Text{
+	public:
+		GLuint FontTexture;
+		GLuint base;
+		
+		void LoadFontTexture(char *fileName);
+		void BuildFont();
+		void glPrint(GLint x, GLint y, char *string, int set, float size, float width, float height);
+		
+		~Text(){
+			glDeleteTextures( 1, (const GLuint *)FontTexture );
+		}
+};
+
+#endif
+