From 70c0be5b2cfb3b9cfe86d5a6e6624e28fb845453 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 13 Dec 2022 13:29:06 +0100 Subject: Move text to a separate file --- src/graphics/textureFont.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/graphics/textureFont.h') 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 #include -#include"SFML/Graphics.hpp" +#include 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 -- cgit v1.2.3