From 2f9c468eee85c53ade4791df7c1cd3e2512bee43 Mon Sep 17 00:00:00 2001 From: Menase Teshale Date: Thu, 27 Aug 2026 01:30:08 +0300 Subject: Fonts working - No scaling - No rotation --- src/font.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/font.h') diff --git a/src/font.h b/src/font.h index 199d65e..e8fcffa 100644 --- a/src/font.h +++ b/src/font.h @@ -6,6 +6,7 @@ #define PARSER_LINE_SIZE 4096 typedef struct { + bool active; float x, y; float width, height; float x_offset, y_offset; @@ -22,5 +23,12 @@ typedef struct { bool load_sprite_font(SDL_Renderer* renderer, const char* filename, sprite_font* font); void free_sprite_font(sprite_font* font); +void draw_text_with_spritefont +( + SDL_Renderer* renderer, + sprite_font* font, + const unsigned char* text, + float x_position, float y_position +); #endif // FONT_H_ -- cgit v1.2.3