From 776e676d7b86bab2f78c63537bf49adb8cce6aca Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 26 May 2023 19:44:23 -0700 Subject: Add gfx_animate_scene() for convenience. --- gltfview/src/game.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gltfview/src/game.c') 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); } void game_update(Game* game, double t, double dt) { // LOGD("Tick"); - // TODO: Animation should be handled by Gfx instead. Descend through the scene - // looking for animas and animate them. gfx_animate(t). - Anima* anima = gfx_get_node_anima(game->root_node); - gfx_update_animation(anima, t); + gfx_animate_scene(game->scene, (R)t); // TODO: Compute bounding boxes to then find a good orbit point and radius // for each scene. -- cgit v1.2.3