diff options
Diffstat (limited to 'gltfview/src/game.h')
-rw-r--r-- | gltfview/src/game.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gltfview/src/game.h b/gltfview/src/game.h index 92c0885..4aeb5ea 100644 --- a/gltfview/src/game.h +++ b/gltfview/src/game.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <gfx/render_backend.h> | 4 | #include <gfx/render_backend.h> |
5 | #include <gfx/renderer.h> | 5 | #include <gfx/renderer.h> |
6 | #include <gfx/scene/camera.h> | 6 | #include <gfx/scene/camera.h> |
7 | #include <gfx/scene/node.h> | ||
7 | #include <gfx/scene/scene.h> | 8 | #include <gfx/scene/scene.h> |
8 | 9 | ||
9 | #include <stdbool.h> | 10 | #include <stdbool.h> |
@@ -13,12 +14,12 @@ static const double game_dt = 1.0 / 60.0; | |||
13 | 14 | ||
14 | /// Game state. | 15 | /// Game state. |
15 | typedef struct { | 16 | typedef struct { |
16 | Gfx* gfx; | 17 | Gfx* gfx; |
17 | RenderBackend* render_backend; | 18 | RenderBackend* render_backend; |
18 | Renderer* renderer; | 19 | Renderer* renderer; |
19 | Scene* scene; | 20 | Scene* scene; |
20 | SceneCamera* camera; | 21 | SceneCamera* camera; |
21 | double elapsed; | 22 | SceneNode* root_node; |
22 | } Game; | 23 | } Game; |
23 | 24 | ||
24 | bool game_new(Game*, int argc, const char** argv); | 25 | bool game_new(Game*, int argc, const char** argv); |