diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-10 15:44:28 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-10 15:44:28 +1000 |
commit | 53fe85a463c9c68ec75fa4efb496d1ff864a929e (patch) | |
tree | f917cc01dd4382630c21eb7a5ab872dbe7d948b0 /src/core.c | |
parent | 78275161e08df050d3439f16ef88de8e421c6f8b (diff) |
add bindings friendly functions
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -58,7 +58,7 @@ void core_bringup() { #include <glfw3.h> -bool should_window_close(core* core) { glfwWindowShouldClose(core->renderer.window); } +/* bool should_window_close(core* core) { glfwWindowShouldClose(core->renderer.window); } */ void core_input_update() { input_update(&g_core.input); } void core_frame_begin(core* core) { render_frame_begin(&core->renderer); } void core_frame_end(core* core) { render_frame_end(&core->renderer); } @@ -72,3 +72,7 @@ void core_shutdown() { bool should_exit() { return key_just_released(KEYCODE_ESCAPE) || glfwWindowShouldClose(g_core.renderer.window); } + +void frame_begin() { render_frame_begin(&g_core.renderer); } +void frame_draw() {} +void frame_end() { render_frame_end(&g_core.renderer); } |