summaryrefslogtreecommitdiff
path: root/includes/glfont.h
blob: 831da5ea55525790e73121d2867e09b45cd4d44a (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
#ifndef __GLFONT_H__
#define __GLFONT_H__

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

namespace mogltk {
    class font : public Base {
      public:
          font(const String & = "font.bin");
	  virtual ~font();
	void drawentry(Uint16, Color = Color(255, 255, 255), int = -1, int = -1);
	
      private:
        Uint8 * sizes;
	Uint16 nbentries, nbcT, nbT;
	Uint8 flags, maxX, maxY, nbcU, nbcV;
	texture ** fonttex;
	Uint16 * corresp;
    };
};

#endif