summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-06-27 10:13:51 -0700
committer3gg <3gg@shellblade.net>2025-06-27 10:13:51 -0700
commit03d94f3762ab576ba0675abcaefde888a9da2c3d (patch)
tree7a63946bca63e6d3043cbba50f6e4d63e59c4d80 /src/game.h
Initial commit
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
new file mode 100644
index 0000000..579ba3c
--- /dev/null
+++ b/src/game.h
@@ -0,0 +1,21 @@
1/*
2 * Header file defining the game state, included by plugins.
3 */
4#pragma once
5
6typedef struct PluginEngine PluginEngine;
7typedef struct Plugin Plugin;
8typedef struct Gfx Gfx;
9typedef struct Scene Scene;
10typedef struct SceneCamera SceneCamera;
11
12/// Game state.
13typedef struct {
14 int argc;
15 const char** argv;
16 PluginEngine* plugin_engine;
17 Plugin* plugin;
18 Gfx* gfx;
19 int width;
20 int height;
21} Game;