diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 02:59:59 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-10 02:59:59 +1000 |
commit | dcb9f65b25e59edb21c9c3cac7b32d70ca19eb72 (patch) | |
tree | ce99b01a070c57ecc6f3f4073b8298608706f9a0 /src/core/core.c | |
parent | a0592bdb9966b204373bc4a258da47a603c70969 (diff) |
wip
Diffstat (limited to 'src/core/core.c')
-rw-r--r-- | src/core/core.c | 6 |
1 files changed, 3 insertions, 3 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); } |