#include <msp/datafile/collection.h>
#include "keyframe.h"
#include "pose.h"
+#include "transform.h"
using namespace std;
{
add("pose", &Loader::pose);
add("pose", &Loader::pose_inline);
+ add("transform", &Loader::transform);
+ add("uniforms", &Loader::uniforms);
+
+ // Deprecated; use the transform statement instead
add("position", &Loader::position);
add("rotation", &Loader::rotation);
add("scaling", &Loader::scaling_uniform);
add("scaling", &Loader::scaling);
- add("uniforms", &Loader::uniforms);
}
void KeyFrame::Loader::pose(const string &n)
obj.matrix.scale(x, y, z);
}
+void KeyFrame::Loader::transform()
+{
+ Transform trn;
+ load_sub(trn);
+ obj.matrix = trn.to_matrix();
+}
+
void KeyFrame::Loader::uniforms()
{
UniformsLoader ldr(obj);