summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 02:59:59 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 02:59:59 +1000
commitdcb9f65b25e59edb21c9c3cac7b32d70ca19eb72 (patch)
treece99b01a070c57ecc6f3f4073b8298608706f9a0 /src/core
parenta0592bdb9966b204373bc4a258da47a603c70969 (diff)
wip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c6
-rw-r--r--src/core/core.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core.c b/src/core/core.c
index bb30ced..12aa33f 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -20,11 +20,11 @@ Core g_core; /** @brief global `Core` that other files can use */
/** @brief Gets the global `Core` singleton */
inline Core* GetCore() { return &g_core; }
-void Core_Bringup(struct GLFWwindow* optional_window) {
+void Core_Bringup(const char* window_name, struct GLFWwindow* optional_window) {
INFO("Initiate Core bringup");
memset(&g_core, 0, sizeof(Core));
- RendererConfig conf = { .window_name = { "Celeritas Engine Core" },
+ RendererConfig conf = { .window_name = window_name,
.scr_width = SCR_WIDTH,
.scr_height = SCR_HEIGHT,
.clear_colour = (Vec3){ .08, .08, .1 } };
@@ -80,4 +80,4 @@ GLFWwindow* Core_GetGlfwWindowPtr(Core* core) { return g_core.window; }
struct Renderer* Core_GetRenderer(Core* core) { return core->renderer; }
-Model* Model_Get(ModelHandle h) { return Model_pool_get(&g_core.models, h); } \ No newline at end of file
+Model* Model_Get(ModelHandle h) { return Model_pool_get(&g_core.models, h); }
diff --git a/src/core/core.h b/src/core/core.h
index 86f5b01..4e7ff03 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -32,7 +32,7 @@ Core* get_global_core();
@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_Bringup(const char* window_name, GLFWwindow* optional_window);
void Core_Shutdown();
bool ShouldExit();