#ifndef __GLFONT_H__ #define __GLFONT_H__ #include #include #include #include #include #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 putchar(char, Color = Color(255, 255, 255, 255)); void newline(void); int printf(const ugly_string &, ...); int printf(const char *, ...); int printf(const ugly_string &, va_list); void setcolor(Color); void setshadow(int); int getchar(char) const; int singletextsize(const String &) const; private: Uint8 * sizes; Uint16 nbentries, nbcT, nbT; Uint8 flags, maxX, maxY, nbcU, nbcV, base, inter; texture ** fonttex; Uint16 * corresp; void Bind(int); int cx, cy, ox; Color textcolor; int shadow; }; extern font * SystemFont; }; #endif