From 520e4e67cd9ff53f3c3512c80d07193625e07e3e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 16 Jun 2023 09:38:15 -0700 Subject: New plugin architecture. --- gltfview/src/game.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gltfview/src/game.h') diff --git a/gltfview/src/game.h b/gltfview/src/game.h index 4aeb5ea..2a7b7ef 100644 --- a/gltfview/src/game.h +++ b/gltfview/src/game.h @@ -9,17 +9,21 @@ #include +typedef struct Plugin Plugin; +typedef struct PluginEngine PluginEngine; + /// The delta time the game should be updated with. static const double game_dt = 1.0 / 60.0; /// Game state. typedef struct { - Gfx* gfx; - RenderBackend* render_backend; - Renderer* renderer; - Scene* scene; - SceneCamera* camera; - SceneNode* root_node; + int argc; + const char** argv; + PluginEngine* plugin_engine; + Plugin* plugin; + Gfx* gfx; + Scene* scene; + SceneCamera* camera; } Game; bool game_new(Game*, int argc, const char** argv); -- cgit v1.2.3