3#ifndef GDK_GRAPHICS_EXT_ANIMATION_RETARGET_H
4#define GDK_GRAPHICS_EXT_ANIMATION_RETARGET_H
6#include <gdk/graphics/ext/animation/profile.h>
7#include <gdk/graphics/ext/animation/skeleton.h>
12namespace gdk::graphics::animation {
13 using bone_mapping = std::vector<int>;
16 [[nodiscard]]
pose retarget(
const skeleton &aSource,
const pose &aSourcePose,
17 const skeleton &aTarget,
const bone_mapping &aMapping);
20 [[nodiscard]]
clip retarget(
const skeleton &aSource,
const clip &aSourceClip,
21 const skeleton &aTarget,
const bone_mapping &aMapping);
24 [[nodiscard]] std::size_t mapped_bone_count(
const bone_mapping &aMapping);
a profile resolved against one particular skeleton.
Definition profile.h:38
a looping sequence of keyframed poses
Definition skeleton.h:86
one bone rotation per bone, relative to its parent.
Definition skeleton.h:57
a chain of bones in bind pose.
Definition skeleton.h:16