diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-11 01:07:19 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-11 01:07:19 +0200 |
commit | 1b2e308b51fe2d1cebce4f170837a7c08d375484 (patch) | |
tree | e1404a2f91d2306d9952e13a36fbad0c1144b1a4 /src/graphics | |
parent | 66d126f824bc755bad042e1cb94c1d79a3203c97 (diff) |
fix incorrect sprite_set_height, add sprite_set_width
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/Sprite.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/Sprite.cpp b/src/graphics/Sprite.cpp index de9e96c..4d5d181 100644 --- a/src/graphics/Sprite.cpp +++ b/src/graphics/Sprite.cpp @@ -51,6 +51,10 @@ namespace mgl { mgl_sprite_set_size(&sprite, *(mgl_vec2f*)&size); } + void Sprite::set_width(float width) { + mgl_sprite_set_width(&sprite, width); + } + void Sprite::set_height(float height) { mgl_sprite_set_height(&sprite, height); } |