00001 #ifndef FONT_H 00002 #define FONT_H 00003 00004 #include "SDL.h" 00005 00006 class Font 00007 { 00008 00009 public: 00010 Font() {} 00011 ~Font() {} 00012 00013 void write(SDL_Surface *surf, int x, int y, const char *message, int len=0); 00014 void write(SDL_Surface *surf, int x, int y, int num); 00015 00016 private: 00017 inline void putglyph(char *p, int Bpp, int pitch, int which); 00018 00019 }; 00020 00021 #endif // FONT_H