From 9642787fac5b3586f30bc07e4430784a658ba38f Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sun, 17 May 2026 12:47:10 -0400 Subject: add simple ui layouts --- dc/dc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dc/dc.c') diff --git a/dc/dc.c b/dc/dc.c index 66fbf1c..74c0ea3 100644 --- a/dc/dc.c +++ b/dc/dc.c @@ -65,8 +65,10 @@ void tick(void) double frame_time = ty_get_time() - last_frame; last_frame = ty_get_time(); + tyui_layout((float[]){0.25, 0}); tyui_text("%.2g ms", frame_time * 1000); tyui_text("%.2d fps", (int)(1.0 / frame_time)); + tyui_layout(NULL); tyui_text("%d", (int)ty_get_time()); tyui_text("abcdefghijklmnopqrstuvwxyz"); tyui_text("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); -- cgit v1.3-2-g0d8e