Added AnimationFileResource that combine animations with sync tracks.
This commit is contained in:
@@ -18,10 +18,15 @@
|
||||
|
||||
struct SimpleAnimFixture {
|
||||
ozz::unique_ptr<ozz::animation::Skeleton> skeleton = nullptr;
|
||||
|
||||
ozz::animation::offline::RawAnimation raw_animation_translation_x;
|
||||
ozz::unique_ptr<ozz::animation::Animation> animation_translate_x = nullptr;
|
||||
SyncTrack animation_translate_x_sync_track = {};
|
||||
|
||||
ozz::animation::offline::RawAnimation raw_animation_translation_y;
|
||||
ozz::unique_ptr<ozz::animation::Animation> animation_translate_y = nullptr;
|
||||
SyncTrack animation_translate_y_sync_track = {};
|
||||
|
||||
ozz::vector<ozz::math::SoaTransform> animation_output;
|
||||
ozz::animation::SamplingJob::Context sampling_context;
|
||||
|
||||
@@ -197,8 +202,12 @@ TEST_CASE_METHOD(
|
||||
// Prepare animation maps
|
||||
AnimGraphContext graph_context;
|
||||
graph_context.m_skeleton = skeleton.get();
|
||||
graph_context.m_animation_map["trans_x"] = animation_translate_x.get();
|
||||
graph_context.m_animation_map["trans_y"] = animation_translate_y.get();
|
||||
graph_context.m_animation_map["trans_x"] = {
|
||||
animation_translate_x.get(),
|
||||
animation_translate_x_sync_track};
|
||||
graph_context.m_animation_map["trans_y"] = {
|
||||
animation_translate_y.get(),
|
||||
animation_translate_y_sync_track};
|
||||
|
||||
// Instantiate graph
|
||||
AnimGraphBlendTree blend_tree;
|
||||
|
||||
Reference in New Issue
Block a user