diff options
| author | iamcheeseman <[email protected]> | 2026-05-17 12:47:10 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-17 12:47:10 -0400 |
| commit | 9642787fac5b3586f30bc07e4430784a658ba38f (patch) | |
| tree | df77363fae9589c07368d39703af0ae2abfd370f /dc | |
| parent | 6175e022e05d7224d57de2871246316a30dbf52e (diff) | |
add simple ui layouts
Diffstat (limited to 'dc')
| -rw-r--r-- | dc/dc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |
