]> 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 c3ecf16778e0e38469096b5d304b68dd0312d5b0..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;
 
@@ -17,4 +18,9 @@ int sprite_font_render_text(const sprite_font_t *sprite_font,
                             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_