summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/glfont.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/includes/glfont.h b/includes/glfont.h
index 502ff49..831da5e 100644
--- a/includes/glfont.h
+++ b/includes/glfont.h
@@ -1,17 +1,24 @@
#ifndef __GLFONT_H__
#define __GLFONT_H__
-#include "Exceptions.h"
+#include <SDL.h>
+#include "String.h"
#include "gltexture.h"
+#include "Color.h"
namespace mogltk {
- class glfont : public Base {
+ class font : public Base {
public:
- glfont();
- virtual ~glfont();
- void Load(const String &) throw (GeneralException);
+ font(const String & = "font.bin");
+ virtual ~font();
+ void drawentry(Uint16, Color = Color(255, 255, 255), int = -1, int = -1);
+
private:
- gltexture * fonttex;
+ Uint8 * sizes;
+ Uint16 nbentries, nbcT, nbT;
+ Uint8 flags, maxX, maxY, nbcU, nbcV;
+ texture ** fonttex;
+ Uint16 * corresp;
};
};