summaryrefslogtreecommitdiff
path: root/include/glfont.h
blob: cbff8483b52297f8bdb8a4543d0c2c4dab1c617a (plain)
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
#ifndef __GLFONT_H__
#define __GLFONT_H__

#include <SDL.h>
#include <String.h>
#include <Color.h>
#include <Handle.h>
#include "gltexture.h"

namespace mogltk {
    class font : public Base {
      public:
          font(Handle *);
	  virtual ~font();
	void drawentry(Uint16, int, int, Color = Color(255, 255, 255, 255));
	void putcursor(int, int);
	void putentry(Uint16, Color = Color(255, 255, 255, 255));
	void newline(void);
	
      private:
        Uint8 * sizes;
	Uint16 nbentries, nbcT, nbT;
	Uint8 flags, maxX, maxY, nbcU, nbcV;
	texture ** fonttex;
	Uint16 * corresp;
	void Bind(int);
	int cx, cy, ox;
    };
};

#endif