]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/simplescene.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / simplescene.h
index 1e90874b9e1ab6fa682ab385a48e4a37e629e9b1..174a9e2ea80e3cd6c7da982bf4672e88b58201b4 100644 (file)
@@ -8,7 +8,7 @@ namespace Msp {
 namespace GL {
 
 /**
-A simple yet efficient scene.  Rendering order is unspecified.
+A simple scene which renders its contents in an unspecified order.
 */
 class SimpleScene: public Scene
 {
@@ -16,17 +16,12 @@ public:
        using Scene::Loader;
 
 private:
-       std::set<Renderable *> renderables;
-       mutable std::vector<Renderable *> cache;
+       std::vector<Renderable *> content;
 
 public:
        virtual void add(Renderable &);
        virtual void remove(Renderable &);
 
-private:
-       void populate_cache() const;
-
-public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();