From 348161b7ac920ea450becd35685b81e87342d1e5 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:44:43 +1100 Subject: leave main loop in the example --- examples/main_loop/ex_main_loop.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/main_loop/ex_main_loop.c b/examples/main_loop/ex_main_loop.c index 9814fbe..5870f59 100644 --- a/examples/main_loop/ex_main_loop.c +++ b/examples/main_loop/ex_main_loop.c @@ -8,6 +8,7 @@ int main() { core* core = core_bringup(); + // Examples of how to work with arenas and strings size_t arena_size = 1024; arena scratch = arena_create(malloc(arena_size), arena_size); arena* a = &scratch; @@ -30,16 +31,16 @@ int main() { } // Main loop - // while (!glfwWindowShouldClose(core->renderer.window)) { - // input_update(&core->input); - // threadpool_process_results(&core->threadpool, 1); - // - // render_frame_begin(&core->renderer); - // - // // insert work here - // - // render_frame_end(&core->renderer); - // } + while (!glfwWindowShouldClose(core->renderer.window)) { + input_update(&core->input); + threadpool_process_results(&core->threadpool, 1); + + render_frame_begin(&core->renderer); + + // insert work here + + render_frame_end(&core->renderer); + } return 0; } -- cgit v1.2.3-70-g09d2