X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fkeyframe.h;h=5b748add113c5432c0d3c5836e6fceaf4db8b590;hp=88e852149570cae1d6e32968a60d73ed9cd6a5b5;hb=d901696935a6bf9fdad6ac8abe65ffab79bd297d;hpb=9e384cddaf641f25ce6714327e1b4fadfea4632d diff --git a/source/keyframe.h b/source/keyframe.h index 88e85214..5b748add 100644 --- a/source/keyframe.h +++ b/source/keyframe.h @@ -4,6 +4,7 @@ #include #include #include "matrix.h" +#include "transform.h" namespace Msp { namespace GL { @@ -57,7 +58,7 @@ public: typedef std::map UniformMap; private: - Matrix matrix; + Transform transform; UniformMap uniforms; RefPtr pose; @@ -65,9 +66,12 @@ public: KeyFrame(); ~KeyFrame(); + void set_transform(const Transform &); void set_matrix(const Matrix &); + void set_uniform(const std::string &, const AnimatedUniform &); void set_pose(const Pose &); - const Matrix &get_matrix() const { return matrix; } + const Transform &get_transform() const { return transform; } + Matrix get_matrix() const { return transform.to_matrix(); } const UniformMap &get_uniforms() const { return uniforms; } const Pose *get_pose() const { return pose.get(); } };