summaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-24 22:47:46 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-02-24 22:47:46 +1100
commit7b3afcaf77f96e7d62f6cd1623ead7f17512d79f (patch)
treeb5f82c64e9c06a84e4d095ab4ac48712e860b673 /src/core.h
parentb047be5252aeb981faea077409c1768fda0301d9 (diff)
repo init. partial port of existing code
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
new file mode 100644
index 0000000..8a3d037
--- /dev/null
+++ b/src/core.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "defines.h"
+#include "input.h"
+#include "render_types.h"
+#include "screenspace.h"
+#include "text.h"
+#include "threadpool.h"
+
+typedef struct core {
+ renderer renderer;
+ threadpool threadpool;
+ input_state input;
+ text_system_state text;
+ screenspace_state screenspace;
+} core;
+
+// --- Lifecycle
+core* core_bringup();
+void core_shutdown(core* core);
+
+void core_input_update(core* core); \ No newline at end of file