From 03d94f3762ab576ba0675abcaefde888a9da2c3d Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 27 Jun 2025 10:13:51 -0700 Subject: Initial commit --- src/game.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/game.h (limited to 'src/game.h') 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 @@ +/* + * Header file defining the game state, included by plugins. + */ +#pragma once + +typedef struct PluginEngine PluginEngine; +typedef struct Plugin Plugin; +typedef struct Gfx Gfx; +typedef struct Scene Scene; +typedef struct SceneCamera SceneCamera; + +/// Game state. +typedef struct { + int argc; + const char** argv; + PluginEngine* plugin_engine; + Plugin* plugin; + Gfx* gfx; + int width; + int height; +} Game; -- cgit v1.2.3