diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 00:54:30 +0000 |
commit | 840f9b8678f607aecc15d47bc77248c4ac8b8574 (patch) | |
tree | f90688ca7afabb8e4123e1a811dd168a86717a3c /src/render/text.h | |
parent | 43b994017a560a2fa97894ebfe121375d6614b6f (diff) |
tweaked console
client status with timer and fps
core connect/disconnect
Diffstat (limited to 'src/render/text.h')
-rw-r--r-- | src/render/text.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/render/text.h b/src/render/text.h index 19b2150..ac7d104 100644 --- a/src/render/text.h +++ b/src/render/text.h @@ -8,13 +8,24 @@ #define __INCLUDED_RENDER_TEXT_H__ #include <string> +#include <sstream> -#define CHARSIZE 16 +#define CHARWIDTH 16 +#define CHARHEIGHT 24 namespace render { + /// draw a character + void draw_text(float x, float y, const char ascii); /// draw a text string - void draw_text(float x, float y, std::string text); + void draw_text(float x, float y, const std::string & text); + /// draw a text string + void draw_text(float x, float y, const char *text); + /// draw a text stream + /** If the stream contains multiple lines, each new line will be + * drawn at the same x value. The stream is cleared after reading + */ + void draw_text(float x, float y, std::stringstream & textstream); } #endif //__INCLUDED_RENDER_TEXT_H__ |