twn_rendering -> twn_draw
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user