]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation.h
Use vector when there's no reason to use some other container
[libs/gl.git] / source / animation.h
index 1ae571e7db217e8e624c6475dc6c4731ebf08a9d..929cb13f497318c3a91492cc1cf18d36584f267e 100644 (file)
@@ -73,8 +73,6 @@ private:
                void prepare();
        };
 
-       typedef std::list<TimedKeyFrame> KeyFrameList;
-
        struct UniformInfo
        {
                std::string name;
@@ -87,8 +85,8 @@ public:
        class Iterator
        {
        private:
-               const Animation &animation;
-               KeyFrameList::const_iterator iter;
+               const Animation *animation;
+               std::vector<TimedKeyFrame>::const_iterator iter;
                Time::TimeDelta time_since_keyframe;
                bool end;
 
@@ -105,7 +103,7 @@ public:
 
 private:
        const Armature *armature;
-       KeyFrameList keyframes;
+       std::vector<TimedKeyFrame> keyframes;
        bool looping;
        std::vector<UniformInfo> uniforms;