aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-11 01:07:00 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-11 01:07:00 +0200
commitf680ab5c3798b730e2e4efb7363ca15074e0499e (patch)
tree4c252a30ca0a4dd403e0d61d00ac95dafbb23d91 /include
parent1de5e22423bee66769966f21a4c256a0011aba81 (diff)
fix incorrect sprite_set_height, add sprite_set_width
Diffstat (limited to 'include')
-rw-r--r--include/mgl/graphics/sprite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/graphics/sprite.h b/include/mgl/graphics/sprite.h
index 9e4ebc7..c37ee39 100644
--- a/include/mgl/graphics/sprite.h
+++ b/include/mgl/graphics/sprite.h
@@ -27,6 +27,8 @@ void mgl_sprite_set_rotation(mgl_sprite *self, float degrees);
void mgl_sprite_set_origin(mgl_sprite *self, mgl_vec2f origin);
/* This only has an effect if the sprite has a texture set */
void mgl_sprite_set_size(mgl_sprite *self, mgl_vec2f size);
+/* This only has an effect if the sprite has a texture set. Scales height in proportion */
+void mgl_sprite_set_width(mgl_sprite *self, float width);
/* This only has an effect if the sprite has a texture set. Scales width in proportion */
void mgl_sprite_set_height(mgl_sprite *self, float height);
/* Texture size multiplied by the sprite scaling */