--- /dev/null
+#include "keyframe.h"
+
+namespace Msp {
+namespace GL {
+
+KeyFrame::Loader::Loader(KeyFrame &k):
+ DataFile::ObjectLoader<KeyFrame>(k)
+{
+ add("position", &Loader::position);
+ add("rotation", &Loader::rotation);
+ add("scaling", &Loader::scaling_uniform);
+ add("scaling", &Loader::scaling);
+}
+
+void KeyFrame::Loader::position(float x, float y, float z)
+{
+ obj.matrix.translate(x, y, z);
+}
+
+void KeyFrame::Loader::rotation(float a, float x, float y, float z)
+{
+ obj.matrix.rotate_deg(a, x, y, z);
+}
+
+void KeyFrame::Loader::scaling_uniform(float s)
+{
+ obj.matrix.scale(s);
+}
+
+void KeyFrame::Loader::scaling(float x, float y, float z)
+{
+ obj.matrix.scale(x, y, z);
+}
+
+} // namespace GL
+} // namespace Msp