diff options
Diffstat (limited to 'include/mgl/graphics/sprite.h')
-rw-r--r-- | include/mgl/graphics/sprite.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/graphics/sprite.h b/include/mgl/graphics/sprite.h index 0193c4c..9e4ebc7 100644 --- a/include/mgl/graphics/sprite.h +++ b/include/mgl/graphics/sprite.h @@ -29,6 +29,8 @@ void mgl_sprite_set_origin(mgl_sprite *self, mgl_vec2f origin); void mgl_sprite_set_size(mgl_sprite *self, mgl_vec2f size); /* 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 */ +mgl_vec2f mgl_sprite_get_size(const mgl_sprite *self); void mgl_sprite_draw(mgl_context *context, mgl_sprite *sprite); #endif /* MGL_SPRITE_H */ |