diff options
author | 3gg <3gg@shellblade.net> | 2023-02-04 14:36:02 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-02-04 14:36:02 -0800 |
commit | 8068d0a816b3efd17ebb0dcf468c6d333e3577d3 (patch) | |
tree | f88f0845c34efbb1c43f88ea71fcbf32ea5adae9 /gltfview/src/game.h | |
parent | f319f0bb59f5e05bd06dcd160699f2b0f2f14e8a (diff) |
Add support for skeletal animation.
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); |