add basic text rendering
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user