blob: 22179f591d4cb85412e9a0ccc6a476c17773b106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef GRAPHICS_TEXT_H
#define GRAPHICS_TEXT_H
#include"textureFont.h"
namespace Graphics {
class Text : public sf::Drawable, public sf::Transformable {
private:
TextureFont &font_;
const std::string text_;
sf::VertexArray vertices_;
public:
Text(TextureFont &font, const std::string &text);
virtual void draw(sf::RenderTarget& target,
sf::RenderStates states) const override;
};
}
#endif // GRAPHICS_TEXT_H
|