summaryrefslogtreecommitdiff
path: root/gltfview/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-05-26 19:44:23 -0700
committer3gg <3gg@shellblade.net>2023-05-26 19:44:23 -0700
commit776e676d7b86bab2f78c63537bf49adb8cce6aca (patch)
treeeb06021301ad290f506360ccf2c480c8d5d8d0bc /gltfview/src
parent29af7cf14cd55ece0a8c8b1305f3b71ab57bebd6 (diff)
Add gfx_animate_scene() for convenience.
Diffstat (limited to 'gltfview/src')
-rw-r--r--gltfview/src/game.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gltfview/src/game.c b/gltfview/src/game.c
index 662272c..698267e 100644
--- a/gltfview/src/game.c
+++ b/gltfview/src/game.c
@@ -262,10 +262,7 @@ void game_end(Game* game) { gfx_destroy(&game->gfx); }
262void game_update(Game* game, double t, double dt) { 262void game_update(Game* game, double t, double dt) {
263 // LOGD("Tick"); 263 // LOGD("Tick");
264 264
265 // TODO: Animation should be handled by Gfx instead. Descend through the scene 265 gfx_animate_scene(game->scene, (R)t);
266 // looking for animas and animate them. gfx_animate(t).
267 Anima* anima = gfx_get_node_anima(game->root_node);
268 gfx_update_animation(anima, t);
269 266
270 // TODO: Compute bounding boxes to then find a good orbit point and radius 267 // TODO: Compute bounding boxes to then find a good orbit point and radius
271 // for each scene. 268 // for each scene.