Refactor UI code into an immediate mode style #1

Merged
abdelrahman merged 10 commits from immediate-mode-ui into main 2024-01-20 22:22:17 +00:00
Showing only changes of commit 718e7eec21 - Show all commits

View File

@ -42,6 +42,9 @@ i32 run_main_loop(void) {
}
compositor_t comp = {0};
init_ui_ctx(&(comp.ctx));
comp.rects = (rect_t *)malloc(sizeof(rect_t) * MAX_NODES);
comp.nodes = (node_t *)malloc(sizeof(node_t) * MAX_NODES);