]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/orderedscene.h
Update and improve documentation
[libs/gl.git] / source / render / orderedscene.h
index aa43eb73ea83e4dd90595550ab6d7683ffb6e113..a4e5631bf337f852c166e752016ad725f9cd1104 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::list<Renderable *> renderables;
+       std::vector<Renderable *> renderables;
 
 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;
 };