summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 00:23:30 +1100
commit5234133f2d55dc7f24eaa63b86e3952decaaba91 (patch)
tree01b4732ff6b1686f62cedcab5afe48092094784d /src/core.c
parentdf81a840a5276c35df5f35d55610f1bf31487153 (diff)
chore: format
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/core.c b/src/core.c
index 9359a6b..0cbaa09 100644
--- a/src/core.c
+++ b/src/core.c
@@ -6,7 +6,7 @@
NAMESPACED_LOGGER(core);
-core g_core = {0};
+core g_core = { 0 };
#ifdef GPU_METAL
static const char* gapi = "Metal";
@@ -43,16 +43,12 @@ void core_shutdown() {
glfwTerminate();
}
-bool app_should_exit() {
- return glfwWindowShouldClose(g_core.window) || g_core.should_exit;
-}
+bool app_should_exit() { return glfwWindowShouldClose(g_core.window) || g_core.should_exit; }
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {
- if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) {
- g_core.should_exit = true;
- }
+ if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) {
+ g_core.should_exit = true;
+ }
}
-void resize_callback(GLFWwindow* window, int width, int height) {
- ral_backend_resize_framebuffer(width, height);
-} \ No newline at end of file
+void resize_callback(GLFWwindow* window, int width, int height) { ral_backend_resize_framebuffer(width, height); } \ No newline at end of file