mitiru::animation

Namespace catalog extracted from docs/API_CATALOG.md (19 types, 118 items).

Namespace catalog extracted from docs/API_CATALOG.md (19 types, 118 items).

NameKindItems
Keyframestruct2
AnimTrackstruct4
Animationstruct4
AnimationPlayerclass10
Jointstruct3
IKChainstruct3
FABRIKSolverclass4
IBlendNodeclass3
ClipNodeclass4
BlendNodeclass4
AnimationStateMachineclass7
Mat4struct1
OzzSkeletonclass5
OzzAnimationclass4
IOzzAnimationSamplerclass10
OzzAnimationSamplerclass9
NullOzzAnimationSamplerclass22
Tweenstruct13
TweenManagerclass6
struct Keyframe 2
float time
float value
struct AnimTrack 4
std::string property
std::vector<Keyframe> keys
std::function<void(float)> setter
[[nodiscard]] float evaluate(float t) const
struct Animation 4
std::string name
float duration = 1.0f
bool loop = false
std::vector<AnimTrack> tracks
class AnimationPlayer 10
void addAnimation(const Animation& anim)
void play(const std::string& name)
void stop()
void update(float dt)
[[nodiscard]] bool isPlaying() const noexcept
[[nodiscard]] float currentTime() const noexcept
void setSpeed(float s) noexcept
[[nodiscard]] float speed() const noexcept
[[nodiscard]] std::string currentAnimation() const
[[nodiscard]] int animationCount() const noexcept
struct Joint 3
float length = 1.0f
int parentIndex = -1
std::string name
struct IKChain 3
std::vector<int> jointIndices
float tolerance = 0.01f
int maxIterations = 20
class FABRIKSolver 4
void setJoints(std::vector<Joint> joints)
bool solve(const IKChain& chain)
[[nodiscard]] std::vector<Joint>& joints() noexcept
[[nodiscard]] const std::vector<Joint>& joints() const noexcept
class IBlendNode 3
virtual ~IBlendNode() = default
[[nodiscard]] virtual float evaluate(float time) const = 0
[[nodiscard]] virtual const char* typeName() const noexcept = 0
class ClipNode : public IBlendNode 4
explicit ClipNode(std::string clipName, float duration = 1.0f)
[[nodiscard]] float evaluate(float time) const override
[[nodiscard]] const char* typeName() const noexcept override
[[nodiscard]] const std::string& clipName() const noexcept
class BlendNode : public IBlendNode 4
BlendNode(std::unique_ptr<IBlendNode> a, std::unique_ptr<IBlendNode> b, float weight = 0.5f)
[[nodiscard]] float evaluate(float time) const override
[[nodiscard]] const char* typeName() const noexcept override
void setWeight(float w) noexcept
class AnimationStateMachine 7
void addState(const std::string& name, std::unique_ptr<IBlendNode> node)
void addTransition(Transition t)
void update(float dt)
[[nodiscard]] const std::string& currentState() const noexcept
[[nodiscard]] float currentTime() const noexcept
[[nodiscard]] size_t stateCount() const noexcept
[[nodiscard]] inline std::unique_ptr<IOzzAnimationSampler> createAnimationSampler()
struct Mat4 1
[[nodiscard]] static constexpr Mat4 identity() noexcept
class OzzSkeleton 5
bool loadFromFile([[maybe_unused]] std::string_view path)
[[nodiscard]] int jointCount() const noexcept
[[nodiscard]] std::string jointName([[maybe_unused]] int index) const
[[nodiscard]] bool isLoaded() const noexcept
[[nodiscard]] const ozz::animation::Skeleton& raw() const noexcept
class OzzAnimation 4
bool loadFromFile([[maybe_unused]] std::string_view path)
[[nodiscard]] float duration() const noexcept
[[nodiscard]] bool isLoaded() const noexcept
[[nodiscard]] const ozz::animation::Animation& raw() const noexcept
class IOzzAnimationSampler 10
virtual ~IOzzAnimationSampler() = default
virtual void setSkeleton(std::shared_ptr<OzzSkeleton> skeleton) = 0
virtual void play(std::shared_ptr<OzzAnimation> animation) = 0
virtual void stop() = 0
virtual void update(float dt) = 0
[[nodiscard]] virtual std::vector<Mat4> getLocalTransforms() const = 0
[[nodiscard]] virtual std::vector<Mat4> getWorldTransforms() const = 0
virtual void blendWith(const IOzzAnimationSampler& other, float weight) = 0
[[nodiscard]] virtual float currentTime() const noexcept = 0
[[nodiscard]] virtual bool isPlaying() const noexcept = 0
class OzzAnimationSampler : public IOzzAnimationSampler 9
void setSkeleton(std::shared_ptr<OzzSkeleton> skeleton) override
void play(std::shared_ptr<OzzAnimation> animation) override
void stop() override
void update(float dt) override
[[nodiscard]] std::vector<Mat4> getLocalTransforms() const override
[[nodiscard]] std::vector<Mat4> getWorldTransforms() const override
void blendWith([[maybe_unused]] const IOzzAnimationSampler& other, [[maybe_unused]] float weight) override
[[nodiscard]] float currentTime() const noexcept override
[[nodiscard]] bool isPlaying() const noexcept override
class NullOzzAnimationSampler : public IOzzAnimationSampler 22
void setSkeleton(std::shared_ptr<OzzSkeleton> skeleton) override
void play(std::shared_ptr<OzzAnimation> animation) override
void stop() override
void update(float dt) override
[[nodiscard]] std::vector<Mat4> getLocalTransforms() const override
[[nodiscard]] std::vector<Mat4> getWorldTransforms() const override
void blendWith([[maybe_unused]] const IOzzAnimationSampler& other, [[maybe_unused]] float weight) override
[[nodiscard]] float currentTime() const noexcept override
[[nodiscard]] bool isPlaying() const noexcept override
using EaseFunc = float (*)(float);
inline float linear(float t) noexcept
inline float inQuad(float t) noexcept
inline float outQuad(float t) noexcept
inline float inOutQuad(float t) noexcept
inline float inCubic(float t) noexcept
inline float outCubic(float t) noexcept
inline float inOutCubic(float t) noexcept
inline float inBack(float t) noexcept
inline float outBack(float t) noexcept
inline float outElastic(float t) noexcept
inline float outBounce(float t) noexcept
inline float inBounce(float t) noexcept
struct Tween 13
float from = 0.0f
float to = 1.0f
float duration = 1.0f
float elapsed = 0.0f
float delay = 0.0f
EaseFunc easing = ease::linear
bool finished = false
bool autoRemove = true
std::function<void(float)> onUpdate
std::function<void()> onComplete
[[nodiscard]] float value() const noexcept
[[nodiscard]] float progress() const noexcept
void update(float dt)
class TweenManager 6
Tween& add(float from, float to, float duration, EaseFunc easing = ease::linear, std::function<void(float)> onUpdate = nullptr)
Tween& addDelayed(float from, float to, float duration, float delay, EaseFunc easing = ease::linear, std::function<void(float)> onUpdate = nullptr)
void update(float dt)
void clear()
[[nodiscard]] std::size_t count() const noexcept
[[nodiscard]] bool allDone() const noexcept

Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.