summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
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