X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fkeyframe.cpp;h=f610de2d42afbd08dd118cf97e7f54afa75da7de;hp=429d893c1afa513fd351913d66833cfd7c9ccc3f;hb=HEAD;hpb=8cbb77df13c4a0e6d6ae0f8b32913cf7e5b2f59c diff --git a/source/keyframe.cpp b/source/keyframe.cpp deleted file mode 100644 index 429d893c..00000000 --- a/source/keyframe.cpp +++ /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(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