blob: 88053af0a4e76cda9282320638e0c8cd5fa6153e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|