diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.c | 12 | ||||
-rw-r--r-- | src/core/core.h | 6 |
2 files changed, 8 insertions, 10 deletions
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(); |