twn_rendering -> twn_draw

This commit is contained in:
2024-10-07 17:53:09 +03:00
parent 9353999a30
commit ade1af12ca
22 changed files with 238 additions and 186 deletions

View File

@ -30,9 +30,9 @@ static void title_tick(State *state) {
const char *font = "fonts/kenney-pixel.ttf";
int text_h = 32;
int text_w = text_get_width(text_str, text_h, font);
int text_w = draw_text_width(text_str, text_h, font);
push_rectangle(
draw_rectangle(
(Rect) {
.x = 0,
.y = 0,
@ -41,7 +41,7 @@ static void title_tick(State *state) {
},
(Color) { 0, 0, 0, 255 }
);
push_text(
draw_text(
text_str,
(Vec2){ 0, 0 },
text_h,