From: Mikko Rasa Date: Sun, 12 Aug 2012 09:13:17 +0000 (+0300) Subject: Allow setting keyframe matrix from the outside X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8cbb77df13c4a0e6d6ae0f8b32913cf7e5b2f59c;p=libs%2Fgl.git Allow setting keyframe matrix from the outside --- diff --git a/source/keyframe.cpp b/source/keyframe.cpp index 7310c239..429d893c 100644 --- a/source/keyframe.cpp +++ b/source/keyframe.cpp @@ -3,6 +3,11 @@ namespace Msp { namespace GL { +void KeyFrame::set_matrix(const Matrix &m) +{ + matrix = m; +} + KeyFrame::Loader::Loader(KeyFrame &k): DataFile::ObjectLoader(k) { diff --git a/source/keyframe.h b/source/keyframe.h index 4b0fa5bd..bc3d65ec 100644 --- a/source/keyframe.h +++ b/source/keyframe.h @@ -28,6 +28,7 @@ private: Matrix matrix; public: + void set_matrix(const Matrix &); const Matrix &get_matrix() const { return matrix; } };