1 #ifndef MSP_GL_KEYFRAME_H_
2 #define MSP_GL_KEYFRAME_H_
4 #include <msp/core/refptr.h>
5 #include <msp/datafile/objectloader.h>
14 Keyframes are used to encapsulate object state for animation.
19 class Loader: public DataFile::CollectionObjectLoader<KeyFrame>
23 Loader(KeyFrame &, Collection &);
27 void pose(const std::string &);
29 void position(float, float, float);
30 void rotation(float, float, float, float);
31 void scaling_uniform(float);
32 void scaling(float, float, float);
37 RefPtr<const Pose> pose;
43 void set_matrix(const Matrix &);
44 void set_pose(const Pose &);
45 const Matrix &get_matrix() const { return matrix; }
46 const Pose *get_pose() const { return pose.get(); }