]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/sprite_font.h
(#265) sprite_font_boundary_box
[nothing.git] / src / game / sprite_font.h
index 1c9ab94726d11cb3877fa6e5e9ae831a86daeafe..f83627a159aeeac39c695d9f33bc6d114f9e4d12 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "color.h"
 #include "math/point.h"
+#include "math/rect.h"
 
 typedef struct sprite_font_t sprite_font_t;
 
@@ -13,8 +14,13 @@ void destroy_sprite_font(sprite_font_t *sprite_font);
 int sprite_font_render_text(const sprite_font_t *sprite_font,
                             SDL_Renderer *renderer,
                             vec_t position,
-                            int size,
+                            vec_t size,
                             color_t color,
                             const char *text);
 
+rect_t sprite_font_boundary_box(const sprite_font_t *sprite_font,
+                                vec_t position,
+                                vec_t size,
+                                const char *text);
+
 #endif  // SPRITE_FONT_H_