2#ifndef LIBSBX_ANIMATIONS_ANIMATION_HPP_
3#define LIBSBX_ANIMATIONS_ANIMATION_HPP_
9#include <libsbx/utility/hashed_string.hpp>
11#include <libsbx/math/vector3.hpp>
12#include <libsbx/math/quaternion.hpp>
16namespace sbx::animations {
28 animation(
const std::filesystem::path& path,
const std::string& name);
30 auto track_map() const noexcept -> const std::unordered_map<utility::hashed_string,
bone_track>&;
32 auto duration() const noexcept -> std::float_t;
37 std::float_t _duration = 0.0f;
38 std::float_t _ticks_per_second = 25.0f;
40 std::unordered_map<utility::hashed_string,
bone_track> _track_map;
Definition: animation.hpp:18
Time-ordered spline for interpolated animation values.
Definition: spline.hpp:65
Generic time-based spline container for animation sampling.
Definition: animation.hpp:22