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