From aa1eeebb1c05edc22335cbb48af5d42be20750c0 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:20:13 +1000 Subject: moving some maths functions to implementation file --- src/core/core.c | 12 +++++------- src/core/core.h | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'src/core') diff --git a/src/core/core.c b/src/core/core.c index a46e395..44db7b1 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -74,12 +74,10 @@ void Frame_Begin() { void Frame_Draw() {} void Frame_End() { Render_FrameEnd(g_core.renderer); } -Core* get_global_core() { - return &g_core; -} +Core* get_global_core() { return &g_core; } -GLFWwindow* Core_GetGlfwWindowPtr(Core* core) { - return g_core.window; -} +GLFWwindow* Core_GetGlfwWindowPtr(Core* core) { return g_core.window; } -struct Renderer* Core_GetRenderer(Core* core) { return core->renderer; } \ No newline at end of file +struct Renderer* Core_GetRenderer(Core* core) { + return core->renderer; +} \ No newline at end of file diff --git a/src/core/core.h b/src/core/core.h index 17561f3..54e6ec3 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -26,10 +26,10 @@ struct Renderer; Core* get_global_core(); -/** +/** @brief Throws error if the core cannot be instantiated - @param [in] optional_window - Leave NULL if you want Celeritas to instantiate its own window with GLFW, if you - want to provide the glfw window then pass it in here. + @param [in] optional_window - Leave NULL if you want Celeritas to instantiate its own window with + GLFW, if you want to provide the glfw window then pass it in here. */ void Core_Bringup(GLFWwindow* optional_window); void Core_Shutdown(); -- cgit v1.2.3-70-g09d2