]> git.tdb.fi Git - libs/gl.git/blobdiff - source/keyframe.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / keyframe.cpp
diff --git a/source/keyframe.cpp b/source/keyframe.cpp
deleted file mode 100644 (file)
index 429d893..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "keyframe.h"
-
-namespace Msp {
-namespace GL {
-
-void KeyFrame::set_matrix(const Matrix &m)
-{
-       matrix = m;
-}
-
-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