diff options
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__ |