]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/sprite_font.h
nothing now compiles on freebsd
[nothing.git] / src / game / sprite_font.h
index 5025963377ba4a52cc31ac872dcbe95e5dfebf5b..9cd11ac643d314c620cd1764775da470bc257ca8 100644 (file)
@@ -2,28 +2,28 @@
 #define SPRITE_FONT_H_
 
 #include "color.h"
-#include "math/point.h"
+#include "math/vec.h"
 #include "math/rect.h"
 
 #define FONT_CHAR_WIDTH 7
 #define FONT_CHAR_HEIGHT 9
 
-typedef struct sprite_font_t sprite_font_t;
+typedef struct Sprite_font Sprite_font;
 
-sprite_font_t *create_sprite_font_from_file(const char *bmp_file_path,
+Sprite_font *create_sprite_font_from_file(const char *bmp_file_path,
                                             SDL_Renderer *renderer);
-void destroy_sprite_font(sprite_font_t *sprite_font);
+void destroy_sprite_font(Sprite_font *sprite_font);
 
-int sprite_font_render_text(const sprite_font_t *sprite_font,
+int sprite_font_render_text(const Sprite_font *sprite_font,
                             SDL_Renderer *renderer,
-                            vec_t position,
-                            vec_t size,
-                            color_t color,
+                            Vec2f position,
+                            Vec2f size,
+                            Color 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);
+Rect sprite_font_boundary_box(const Sprite_font *sprite_font,
+                              Vec2f position,
+                              Vec2f size,
+                              const char *text);
 
 #endif  // SPRITE_FONT_H_