X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimation.h;h=dd3cc688c41290316450858a7d540a79e93dcfb8;hp=32a06075ec18269450a9ab329317e1e7551b8994;hb=89a1ada18430079896cfb28862e61bb32d66b8a0;hpb=4b4d2a48048268d2ad48bafbce8647af8088573f diff --git a/source/animation.h b/source/animation.h index 32a06075..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,12 +68,10 @@ private: std::vector uniforms; std::vector pose_matrices; - TimedKeyFrame(const Animation &); - void prepare(); + TimedKeyFrame(); + void prepare(const Animation &); }; - typedef std::list KeyFrameList; - struct UniformInfo { std::string name; @@ -88,7 +85,7 @@ public: { private: const Animation *animation; - KeyFrameList::const_iterator iter; + std::vector::const_iterator iter; Time::TimeDelta time_since_keyframe; bool end; @@ -105,7 +102,7 @@ public: private: const Armature *armature; - KeyFrameList keyframes; + std::vector keyframes; bool looping; std::vector uniforms; @@ -122,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: