diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-21 11:57:20 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-21 11:57:20 +1000 |
commit | e6273e4dc87a036547447492396c9939e89ecf23 (patch) | |
tree | 76a8b13f87075eb0ce8017ab4ae64a1bc47523b5 /examples/property_animation/ex_property_animation.c | |
parent | ff923749ef298346c5448e90e8338bfc28e4f66b (diff) |
make it compile
Diffstat (limited to 'examples/property_animation/ex_property_animation.c')
-rw-r--r-- | examples/property_animation/ex_property_animation.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/property_animation/ex_property_animation.c b/examples/property_animation/ex_property_animation.c index 5ca0836..c548db4 100644 --- a/examples/property_animation/ex_property_animation.c +++ b/examples/property_animation/ex_property_animation.c @@ -83,12 +83,11 @@ int main() { render_frame_begin(&core->renderer); - mat4 model = mat4_translation(VEC3_ZERO); quat rot = animation_sample(track.rotation, t).rotation; // quat rot = quat_ident(); transform tf = transform_create(VEC3_ZERO, rot, 1.0); - - draw_model(&core->renderer, &game.camera, cube, tf, &our_scene); + mat4 model_tf = transform_to_mat(&tf); + draw_model(&core->renderer, &game.camera, cube, &model_tf, &our_scene); // gfx_backend_draw_frame(&core->renderer, &game.camera, model, NULL); |