6 void KeyFrame::set_matrix(const Matrix &m)
11 KeyFrame::Loader::Loader(KeyFrame &k):
12 DataFile::ObjectLoader<KeyFrame>(k)
14 add("position", &Loader::position);
15 add("rotation", &Loader::rotation);
16 add("scaling", &Loader::scaling_uniform);
17 add("scaling", &Loader::scaling);
20 void KeyFrame::Loader::position(float x, float y, float z)
22 obj.matrix.translate(x, y, z);
25 void KeyFrame::Loader::rotation(float a, float x, float y, float z)
27 obj.matrix.rotate_deg(a, x, y, z);
30 void KeyFrame::Loader::scaling_uniform(float s)
35 void KeyFrame::Loader::scaling(float x, float y, float z)
37 obj.matrix.scale(x, y, z);