transform = Transform::from_matrix(m);
}
+void KeyFrame::set_uniform(const string &n, const AnimatedUniform &u)
+{
+ uniforms.erase(n);
+ uniforms.insert(UniformMap::value_type(n, u));
+}
+
void KeyFrame::set_pose(const Pose &p)
{
pose = &p;
void set_transform(const Transform &);
void set_matrix(const Matrix &);
+ void set_uniform(const std::string &, const AnimatedUniform &);
void set_pose(const Pose &);
const Transform &get_transform() const { return transform; }
Matrix get_matrix() const { return transform.to_matrix(); }