summaryrefslogtreecommitdiff
path: root/src/graphics/textureFont.h
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-12-13 13:29:06 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-12-13 13:29:06 +0100
commit70c0be5b2cfb3b9cfe86d5a6e6624e28fb845453 (patch)
tree862b3a2c38c35e0c6c739c96cb9772eb784c622a /src/graphics/textureFont.h
parent82be0bb0f9e19ea578858d6afff96ef8966424bc (diff)
Move text to a separate file
Diffstat (limited to 'src/graphics/textureFont.h')
-rw-r--r--src/graphics/textureFont.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/graphics/textureFont.h b/src/graphics/textureFont.h
index aa89e50..5e78f9e 100644
--- a/src/graphics/textureFont.h
+++ b/src/graphics/textureFont.h
@@ -3,7 +3,7 @@
#include<string>
#include<array>
-#include"SFML/Graphics.hpp"
+#include<SFML/Graphics.hpp>
namespace Graphics {
class TextureFont {
@@ -23,16 +23,6 @@ namespace Graphics {
const sf::Texture *getTexture();
};
- 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_FONT_H