summaryrefslogtreecommitdiff
path: root/include/font.h
diff options
context:
space:
mode:
authorpixel <pixel>2004-06-20 23:51:59 +0000
committerpixel <pixel>2004-06-20 23:51:59 +0000
commitbf452e7f6a3fa0e41964fc8e2c57e1e577cd1682 (patch)
treeda2c9b920514d4f7b853cf92ee4050720261dde6 /include/font.h
parentb009a6451b7560ba1e0064303deede287c381963 (diff)
Put some modifications in the overall. Font to texture doesn't work though.
Diffstat (limited to 'include/font.h')
-rw-r--r--include/font.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/font.h b/include/font.h
index a557f6e..07f7c03 100644
--- a/include/font.h
+++ b/include/font.h
@@ -7,6 +7,7 @@
#include <Handle.h>
#include <texture.h>
#include <mcolor.h>
+#include <base.h>
namespace mogltk {
class font : public Base {
@@ -14,13 +15,25 @@ namespace mogltk {
font(Handle *);
virtual ~font();
virtual void drawentry(Uint16, int, int, ColorP = WHITE);
+ void drawtotex(texture *, Uint16, int, int, ColorP = WHITE);
void putcursor(int, int);
void putentry(Uint16, ColorP = WHITE);
+ void putentryontex(texture *, Uint16, ColorP = WHITE);
void drawchar(char, ColorP = WHITE);
+ void drawcharontex(texture *, char, ColorP = WHITE);
void newline(void);
int printf(const ugly_string &, ...);
int printf(const char *, ...);
int printf(const ugly_string &, va_list);
+ rect size(const ugly_string &, ...);
+ rect size(const char *, ...);
+ rect size(const ugly_string &, va_list);
+ rect printtotex(texture *, const ugly_string &, ...);
+ rect printtotex(texture *, const char *, ...);
+ rect printtotex(texture *, const ugly_string &, va_list);
+ texture * printtex(rect *, const ugly_string &, ...);
+ texture * printtex(rect *, const char *, ...);
+ texture * printtex(rect *, const ugly_string &, va_list);
void setcolor(ColorP);
void setshadow(int);
void setwspace(int);