aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-18 12:17:31 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 12:17:31 +0100
commit8b020f5be8fbd3741085849fccd5c958cf260d2b (patch)
treee478b28007b4e3605489a0ebabc73f4d4a6f6fa5 /include
parenta2ac8b537a61fb7a7be1a3e08635ffc88e17d966 (diff)
Move glyph creation for text to render function instead of in set string, clear font glyph background before rendering the text
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Text.hpp2
1 files changed, 1 insertions, 1 deletions
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);