]> 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 9e454b20c236e440bbb90142ea02d4a7aa8a1940..f83627a159aeeac39c695d9f33bc6d114f9e4d12 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef SPRITE_FONT_H_
 #define SPRITE_FONT_H_
 
+#include "color.h"
 #include "math/point.h"
+#include "math/rect.h"
 
 typedef struct sprite_font_t sprite_font_t;
 
@@ -12,10 +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);
-int sprite_font_debug_render_whole_texture(const sprite_font_t *sprite_font,
-                                           SDL_Renderer *renderer,
-                                           vec_t position);
+
+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_