From 97668e5b8e28adb9d3dcd361952197ec62c00833 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 2 Jun 2023 15:11:36 -0700 Subject: Cleanup. --- gltfview/src/game.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/gltfview/src/game.c b/gltfview/src/game.c index 9709ea5..c80a1b5 100644 --- a/gltfview/src/game.c +++ b/gltfview/src/game.c @@ -208,13 +208,9 @@ bool game_new(Game* game, int argc, const char** argv) { }*/ Anima* anima = gfx_get_node_anima(game->root_node); - - // const bool play_result = gfx_play_animation( - // anima, &(AnimationPlaySettings){.name = "Defiant stance", .loop = - // false}); - const bool play_result = gfx_play_animation( + + gfx_play_animation( anima, &(AnimationPlaySettings){.name = "Walk", .loop = true}); - // assert(play_result); return true; @@ -229,12 +225,8 @@ cleanup: void game_end(Game* game) { gfx_destroy(&game->gfx); } void game_update(Game* game, double t, double dt) { - // LOGD("Tick"); - gfx_animate_scene(game->scene, (R)t); - // TODO: Compute bounding boxes to then find a good orbit point and radius - // for each scene. const vec3 orbit_point = vec3_make(0, 2, 0); Camera* camera = gfx_get_camera_camera(game->camera); spatial3_orbit( @@ -242,15 +234,6 @@ void game_update(Game* game, double t, double dt) { /*radius=*/2.5, /*azimuth=*/t * 0.5, /*zenith=*/0); spatial3_lookat(&camera->spatial, orbit_point); - - // spatial3_set_position(&camera->spatial, vec3_make(0, 0, 2)); - // spatial3_lookat(&camera->spatial, vec3_make(0, 0, -1)); - - // spatial3_orbit( - // &camera->spatial, vec3_make(0, 0, 0), - // /*radius=*/2.5, - // /*azimuth=*/t * 0.2, /*zenith=*/0); - // spatial3_lookat(&camera->spatial, vec3_make(0, 0, 0)); } void game_render(const Game* game) { -- cgit v1.2.3