summaryrefslogtreecommitdiff
path: root/gltfview/src/game.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-06-16 09:38:15 -0700
committer3gg <3gg@shellblade.net>2023-06-16 09:38:15 -0700
commit520e4e67cd9ff53f3c3512c80d07193625e07e3e (patch)
treef2f8acfc2eb0d2aa279263d93af00beef7e93a1b /gltfview/src/game.h
parent14e6edd6bfe94089d52b5c4b6899dea23923e9be (diff)
New plugin architecture.
Diffstat (limited to 'gltfview/src/game.h')
-rw-r--r--gltfview/src/game.h16
1 files changed, 10 insertions, 6 deletions
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 @@
9 9
10#include <stdbool.h> 10#include <stdbool.h>
11 11
12typedef struct Plugin Plugin;
13typedef struct PluginEngine PluginEngine;
14
12/// The delta time the game should be updated with. 15/// The delta time the game should be updated with.
13static const double game_dt = 1.0 / 60.0; 16static const double game_dt = 1.0 / 60.0;
14 17
15/// Game state. 18/// Game state.
16typedef struct { 19typedef struct {
17 Gfx* gfx; 20 int argc;
18 RenderBackend* render_backend; 21 const char** argv;
19 Renderer* renderer; 22 PluginEngine* plugin_engine;
20 Scene* scene; 23 Plugin* plugin;
21 SceneCamera* camera; 24 Gfx* gfx;
22 SceneNode* root_node; 25 Scene* scene;
26 SceneCamera* camera;
23} Game; 27} Game;
24 28
25bool game_new(Game*, int argc, const char** argv); 29bool game_new(Game*, int argc, const char** argv);