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
-19
View File
@@ -88,25 +88,6 @@ client_poll_event()
}
}
/**
* draws a rectangle with its left-top corner at (x,y) with
* a width of 'w' and height of 'h' filled with color 'color'
*/
void
put_rect(
unsigned int x,
unsigned int y,
unsigned int w,
unsigned int h,
uint32_t color
) {
for (int i = x; i < x + w; i++) {
for (int j = y; j < y + h; j++) {
put_pixel(i, j, color);
}
}
}
// a wrapper function for put_rect using a v2 struct
void
put_rect_v2(