mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TextureFont.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "GlobalGL.h"
10 #include <string>
11 
21 class TextureFont {
22 public:
23  TextureFont( GLuint texindex );
24  ~TextureFont(void);
25  GLvoid buildFont( GLuint cpl, GLuint cpr, GLuint size, GLuint targetsize, GLuint skipspace );
26  unsigned int getSize( void );
27  unsigned int getWidth( void );
28  void print( int x, int y, const char *string, ... );
29  void print( int x, int y, const std::string *text );
30  GLvoid killFont( GLvoid );
31 private:
32  GLuint base;
33  GLuint texture;
34  GLuint count;
35  GLuint width;
36  GLuint height;
37  unsigned int m_size;
38  unsigned int m_width;
39 };