From 8b020f5be8fbd3741085849fccd5c958cf260d2b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 18 Nov 2021 12:17:31 +0100 Subject: Move glyph creation for text to render function instead of in set string, clear font glyph background before rendering the text --- include/mglpp/graphics/Text.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mglpp/graphics/Text.hpp b/include/mglpp/graphics/Text.hpp index 648ecac..5126eab 100644 --- a/include/mglpp/graphics/Text.hpp +++ b/include/mglpp/graphics/Text.hpp @@ -25,7 +25,7 @@ namespace mgl { void set_color(Color color) override; vec2f get_position() const override; - FloatRect get_bounds() const; + FloatRect get_bounds(); void set_string(std::string str); const std::string& get_string() const; void append_string(const std::string &str); -- cgit v1.2.3