X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimation.h;h=dd3cc688c41290316450858a7d540a79e93dcfb8;hp=929cb13f497318c3a91492cc1cf18d36584f267e;hb=89a1ada18430079896cfb28862e61bb32d66b8a0;hpb=573ea4e5602c4321cc1d75daf9ed0beed5cde280 diff --git a/source/animation.h b/source/animation.h index 929cb13f..dd3cc688 100644 --- a/source/animation.h +++ b/source/animation.h @@ -60,7 +60,6 @@ private: struct TimedKeyFrame { - const Animation &animation; const TimedKeyFrame *prev; Time::TimeDelta time; Time::TimeDelta delta_t; @@ -69,8 +68,8 @@ private: std::vector uniforms; std::vector pose_matrices; - TimedKeyFrame(const Animation &); - void prepare(); + TimedKeyFrame(); + void prepare(const Animation &); }; struct UniformInfo @@ -120,6 +119,7 @@ public: void add_keyframe(const Time::TimeDelta &, const KeyFrame &); private: + void add_keyframe(const Time::TimeDelta &, const RefPtr &); void prepare_keyframe(TimedKeyFrame &); public: