X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fkeyframe.h;h=5b748add113c5432c0d3c5836e6fceaf4db8b590;hb=HEAD;hp=6a8c5a447e60ab8c5f0575f47854e9019e145090;hpb=8b9d1625ac367114612b57a83901033ffc2bc7e0;p=libs%2Fgl.git diff --git a/source/keyframe.h b/source/keyframe.h deleted file mode 100644 index 6a8c5a44..00000000 --- a/source/keyframe.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef MSP_GL_KEYFRAME_H_ -#define MSP_GL_KEYFRAME_H_ - -#include -#include -#include "matrix.h" - -namespace Msp { -namespace GL { - -class Pose; - -/** -Keyframes are used to encapsulate object state for animation. -*/ -class KeyFrame -{ -public: - class Loader: public DataFile::CollectionObjectLoader - { - public: - Loader(KeyFrame &); - Loader(KeyFrame &, Collection &); - private: - void init(); - - void pose(const std::string &); - void pose_inline(); - void position(float, float, float); - void rotation(float, float, float, float); - void scaling_uniform(float); - void scaling(float, float, float); - }; - -private: - Matrix matrix; - RefPtr pose; - -public: - KeyFrame(); - ~KeyFrame(); - - void set_matrix(const Matrix &); - void set_pose(const Pose &); - const Matrix &get_matrix() const { return matrix; } - const Pose *get_pose() const { return pose.get(); } -}; - -} // namespace GL -} // namespace Msp - -#endif