summaryrefslogtreecommitdiff
path: root/src/graphics/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/text.h')
-rw-r--r--src/graphics/text.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/graphics/text.h b/src/graphics/text.h
new file mode 100644
index 0000000..22179f5
--- /dev/null
+++ b/src/graphics/text.h
@@ -0,0 +1,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