diff options
Diffstat (limited to 'include/glfont.h')
-rw-r--r-- | include/glfont.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/glfont.h b/include/glfont.h index de4ef63..cbff848 100644 --- a/include/glfont.h +++ b/include/glfont.h @@ -4,14 +4,18 @@ #include <SDL.h> #include <String.h> #include <Color.h> +#include <Handle.h> #include "gltexture.h" namespace mogltk { class font : public Base { public: - font(const String & = "font.bin"); + font(Handle *); virtual ~font(); - void drawentry(Uint16, Color = Color(255, 255, 255), int = -1, int = -1); + 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; @@ -19,6 +23,8 @@ namespace mogltk { Uint8 flags, maxX, maxY, nbcU, nbcV; texture ** fonttex; Uint16 * corresp; + void Bind(int); + int cx, cy, ox; }; }; |