summary refs log tree commit diff
path: root/src/Text.h
blob: 77dee468eeb204ce4765e659d80222e9869e262e (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
#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