6#include <unordered_map>
31 void setName(
const std::string& value) { _name = value; }
32 const std::string&
name()
const {
return _name; }
35 std::vector<AnimationKey>&
keys() {
return _keys; }
36 const std::vector<AnimationKey>&
keys()
const {
return _keys; }
40 std::vector<AnimationKey> _keys;
46 void setName(
const std::string& value) { _name = value; }
47 const std::string&
name()
const {
return _name; }
57 std::vector<AnimationNode>&
nodes() {
return _nodes; }
58 const std::vector<AnimationNode>&
nodes()
const {
return _nodes; }
62 float _duration = 0.0f;
64 std::vector<AnimationNode> _nodes;
65 std::unordered_map<std::string, size_t> _nodeDict;
const std::vector< AnimationNode > & nodes() const
void setName(const std::string &value)
void addNode(const AnimationNode &node)
void setDuration(float value)
std::vector< AnimationNode > & nodes()
AnimationNode * getNode(const std::string &nodeName)
const std::string & name() const
AnimationKey(float time, const Vector3 &position, const Quaternion &rotation, const Vector3 &scale)
std::vector< AnimationKey > & keys()
const std::vector< AnimationKey > & keys() const
const std::string & name() const
void setName(const std::string &value)
void addKey(const AnimationKey &key)
Unit quaternion for rotation representation with SIMD-accelerated slerp and multiply.
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.