Updated ozz-animation to version 0.14.1 @35b2efd4

This commit is contained in:
Martin Felis
2023-03-26 13:28:12 +02:00
parent bf3189ff49
commit 15871f349c
194 changed files with 3495 additions and 1957 deletions
@@ -24,6 +24,7 @@ add_executable(sample_user_channel
"${CMAKE_CURRENT_BINARY_DIR}/media/track.ozz")
target_link_libraries(sample_user_channel
sample_framework)
target_copy_shared_libraries(sample_user_channel)
set_target_properties(sample_user_channel
PROPERTIES FOLDER "samples")
@@ -212,7 +212,7 @@ class UserChannelSampleApplication : public ozz::sample::Application {
// Samples animation at r = _ratio.
ozz::animation::SamplingJob sampling_job;
sampling_job.animation = &animation_;
sampling_job.cache = &cache_;
sampling_job.context = &context_;
sampling_job.ratio = _ratio;
sampling_job.output = make_span(locals_);
if (!sampling_job.Run()) {
@@ -277,8 +277,8 @@ class UserChannelSampleApplication : public ozz::sample::Application {
const int num_joints = skeleton_.num_joints();
models_.resize(num_joints);
// Allocates a cache that matches animation requirements.
cache_.Resize(num_joints);
// Allocates a context that matches animation requirements.
context_.Resize(num_joints);
// Reading track.
if (!ozz::sample::LoadTrack(OPTIONS_track, &track_)) {
@@ -339,8 +339,8 @@ class UserChannelSampleApplication : public ozz::sample::Application {
// Runtime animation.
ozz::animation::Animation animation_;
// Sampling cache.
ozz::animation::SamplingCache cache_;
// Sampling context.
ozz::animation::SamplingJob::Context context_;
// Buffer of local transforms as sampled from animation_.
ozz::vector<ozz::math::SoaTransform> locals_;