aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-02 11:48:06 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-02 11:48:06 +0100
commite72c8d1bbd0d74dcf4a4832d0352f5f8211fc343 (patch)
treeb0cbcc55d57df837c2e0607681eddf2312d1fa7f /include
parent0108af496da089dbee70ce80d778dfb5c238460b (diff)
Sprite: add get_size, which returns the texture size and takes into account scaling
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Sprite.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Sprite.hpp b/include/mglpp/graphics/Sprite.hpp
index 9453c30..21b2a41 100644
--- a/include/mglpp/graphics/Sprite.hpp
+++ b/include/mglpp/graphics/Sprite.hpp
@@ -20,6 +20,8 @@ namespace mgl {
void set_position(vec2f position) override;
void set_color(Color color) override;
vec2f get_position() const override;
+ vec2f get_size() const;
+
void set_scale(vec2f scale);
void set_scale(float scale);
void set_size(vec2f size);