1 #ifndef MSP_GL_SIMPLESCENE_H_
2 #define MSP_GL_SIMPLESCENE_H_
11 A simple yet efficient scene. Rendering order is unspecified.
13 class SimpleScene: public Scene
16 typedef std::set<Renderable *> RenderableSet;
17 typedef std::vector<Renderable *> RenderableArray;
19 RenderableSet renderables;
20 mutable RenderableArray cache;
23 virtual void add(Renderable &);
24 virtual void remove(Renderable &);
27 void populate_cache() const;
30 virtual void setup_frame(Renderer &);
31 virtual void finish_frame();
33 virtual void render(Renderer &, Tag = Tag()) const;