]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/orderedscene.h
Store simpler states by value in PipelineState
[libs/gl.git] / source / render / orderedscene.h
index 0ca1c4650697e7a845a7f54e09ebf9648f352ddd..b7fa8c6c66869c2dbc52ed09aeea9aa4fa05d59e 100644 (file)
@@ -1,15 +1,14 @@
 #ifndef MSP_GL_ORDEREDSCENE_H_
 #define MSP_GL_ORDEREDSCENE_H_
 
-#include <list>
+#include <vector>
 #include "scene.h"
 
 namespace Msp {
 namespace GL {
 
 /**
-A scene that renders its contents in a specific order.  Inserting Renderables
-in the middle and removing them are O(N) operations.
+A scene which renders its contents in a specific order.
 */
 class OrderedScene: public Scene
 {
@@ -17,9 +16,7 @@ public:
        using Scene::Loader;
 
 private:
-       typedef std::list<Renderable *> RenderableList;
-
-       RenderableList renderables;
+       std::vector<Renderable *> content;
 
 public:
        virtual void add(Renderable &);
@@ -31,7 +28,6 @@ public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
 
-       using Scene::render;
        virtual void render(Renderer &, Tag = Tag()) const;
 };