From d0eb5b0dcb589cfa74e801f19c911ae0f665eaa0 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 19 Feb 2024 17:22:28 -0800 Subject: Address TODO. --- game/src/plugins/texture_view.c | 4 ++-- game/src/plugins/viewer.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'game/src/plugins') diff --git a/game/src/plugins/texture_view.c b/game/src/plugins/texture_view.c index b624f46..52dff57 100644 --- a/game/src/plugins/texture_view.c +++ b/game/src/plugins/texture_view.c @@ -73,11 +73,11 @@ bool init(Game* game, State** pp_state) { goto cleanup; } - SceneObject* object = gfx_make_object(); + SceneObject* object = + gfx_make_object(&(ObjectDesc){.num_meshes = 1, .meshes = {mesh}}); if (!object) { goto cleanup; } - gfx_add_object_mesh(object, mesh); if (!(state->scene = gfx_make_scene())) { goto cleanup; diff --git a/game/src/plugins/viewer.c b/game/src/plugins/viewer.c index 88821af..4f4ef03 100644 --- a/game/src/plugins/viewer.c +++ b/game/src/plugins/viewer.c @@ -195,7 +195,7 @@ static void render_bounding_boxes_rec(ImmRenderer* imm, const SceneNode* node) { // pose). const mat4 model = gfx_get_node_global_transform(node); const SceneObject* obj = gfx_get_node_object(node); - const aabb3 box = gfx_calc_object_aabb(obj); + const aabb3 box = gfx_get_object_aabb(obj); gfx_imm_set_model_matrix(imm, &model); gfx_imm_draw_aabb3(imm, box); } -- cgit v1.2.3