]> 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 3e2974e9d25a32ed10992c23d2f2eaa349b37a94..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,7 +16,7 @@ public:
        using Scene::Loader;
 
 private:
-       std::vector<Renderable *> renderables;
+       std::vector<Renderable *> content;
 
 public:
        virtual void add(Renderable &);
@@ -29,7 +28,6 @@ public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
 
-       using Scene::render;
        virtual void render(Renderer &, Tag = Tag()) const;
 };