diff options
Diffstat (limited to 'gltfview/src/game.h')
-rw-r--r-- | gltfview/src/game.h | 16 |
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 | ||
12 | typedef struct Plugin Plugin; | ||
13 | typedef struct PluginEngine PluginEngine; | ||
14 | |||
12 | /// The delta time the game should be updated with. | 15 | /// The delta time the game should be updated with. |
13 | static const double game_dt = 1.0 / 60.0; | 16 | static const double game_dt = 1.0 / 60.0; |
14 | 17 | ||
15 | /// Game state. | 18 | /// Game state. |
16 | typedef struct { | 19 | typedef 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 | ||
25 | bool game_new(Game*, int argc, const char** argv); | 29 | bool game_new(Game*, int argc, const char** argv); |