From 2d916efa7963e6c247a451f3046f7bfce683737d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 28 Jan 2011 23:32:31 +0100 Subject: Added the Text class. --- text.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 text.h (limited to 'text.h') diff --git a/text.h b/text.h new file mode 100644 index 0000000..88053af --- /dev/null +++ b/text.h @@ -0,0 +1,20 @@ +#ifndef TEXT_H +#define TEXT_H + +#include + +#include + +class Text { + private: + sf::String string; + + public: + Text(std::string str, int x = 0, int y = 0); + void draw(); + void set_text(std::string str); + void set_position(int x, int y); + void subtract_height(); +}; + +#endif -- cgit v1.2.3