add basic text rendering

This commit is contained in:
2026-10-05 02:24:13 +02:00
parent 0faf401f67
commit 760d2abc6c
6 changed files with 168 additions and 23 deletions
+17 -1
View File
@@ -11,6 +11,8 @@
#define DEFAULT_WINDOW_NAME "Dangerzone"
#define WINDOW_NAME_LENGTH 128
#define TARGET_FRAME 1.0 / 60.0
#define FONT_ROWS 7
#define FONT_COLS 5
typedef struct {
char window_name[WINDOW_NAME_LENGTH];
@@ -91,5 +93,19 @@ put_char(
char c,
uint32_t x,
uint32_t y,
uint8_t size
uint32_t size,
uint32_t fg_color,
uint32_t bg_color
);
void
put_string(
const char *text,
uint32_t x,
uint32_t y,
uint32_t size,
uint32_t spacing,
uint32_t line_spacing,
uint32_t fg_color,
uint32_t bg_color
);