summaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-10 13:24:05 +1000
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-10 13:24:05 +1000
commitf7944239b793d1d5c49336856965d3a793f99316 (patch)
tree2effd38a16a15aee505eb8c27a231dfbe35c822a /src/core.h
parent3a0557d98ba311b031ad53ceb8fc6025013f65dc (diff)
make core a static and add a default scene to it
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/core.h b/src/core.h
index a122448..ec8cde9 100644
--- a/src/core.h
+++ b/src/core.h
@@ -1,9 +1,8 @@
#pragma once
-#include "defines.h"
#include "input.h"
-#include "ral.h"
#include "screenspace.h"
+#include "scene.h"
#include "terrain.h"
#include "text.h"
// #include "threadpool.h"
@@ -19,12 +18,17 @@ typedef struct core {
terrain_state terrain;
screenspace_state screenspace;
// data storage
+ scene default_scene;
model_darray* models;
} core;
+core* get_global_core();
+
// --- Lifecycle
-core* core_bringup();
-void core_shutdown(core* core);
-bool should_exit(core* core);
-void core_input_update(core* core);
+/** @brief Throws error if the core cannot be instantiated */
+void core_bringup();
+void core_shutdown();
+bool should_exit();
+
+void core_input_update();