2009-02-09 21:15:56 +00:00
|
|
|
#ifndef RasterFont_Header
|
|
|
|
#define RasterFont_Header
|
|
|
|
|
|
|
|
class RasterFont {
|
|
|
|
protected:
|
|
|
|
int fontOffset;
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
public:
|
|
|
|
RasterFont();
|
|
|
|
~RasterFont(void);
|
|
|
|
static int debug;
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
// some useful constants
|
|
|
|
enum {char_width = 10};
|
|
|
|
enum {char_height = 15};
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
// and the happy helper functions
|
|
|
|
void printString(const char *s, double x, double y, double z=0.0);
|
|
|
|
void printCenteredString(const char *s, double y, int screen_width, double z=0.0);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|