From edf4a6c42a5e65ecdbd838811eee76fbd619c12a Mon Sep 17 00:00:00 2001 From: Guillaume Blanc Date: Sun, 28 Apr 2024 16:16:43 +0200 Subject: [PATCH] Implements missing DrawMotion implementation --- samples/framework/motion_utils.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/framework/motion_utils.cc b/samples/framework/motion_utils.cc index 20db10d08..f314de33b 100644 --- a/samples/framework/motion_utils.cc +++ b/samples/framework/motion_utils.cc @@ -215,6 +215,13 @@ bool MotionSampler::Update(const MotionTrack& _motion, float _ratio, int _loops, return true; } +bool DrawMotion(ozz::sample::Renderer* _renderer, + const MotionTrack& _motion_track, float _from, float _at, + float _to, float _step, const ozz::math::Float4x4& _transform) { + return DrawMotion(_renderer, _motion_track, _from, _at, _to, _step, + _transform, ozz::math::Quaternion::identity()); +} + // Uses a MotionSampler to estimate past and future positions arount _at. // This is a great test for the MotionSampler and MotionAccumulator. bool DrawMotion(ozz::sample::Renderer* _renderer,