diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-28 23:32:31 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-28 23:33:06 +0100 |
commit | 2d916efa7963e6c247a451f3046f7bfce683737d (patch) | |
tree | 30be684110275c63a4577b411f7d6e0c51fe2105 /text.h | |
parent | 75182acf727092775ff5f94d4a42799cafa2bff7 (diff) |
Added the Text class.
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#ifndef TEXT_H +#define TEXT_H + +#include <SFML/Graphics.hpp> + +#include <string> + +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 |