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
19 typedef std::set<Renderable *> RenderableSet;
20 typedef std::vector<Renderable *> RenderableArray;
22 RenderableSet renderables;
23 mutable RenderableArray cache;
26 virtual void add(Renderable &);
27 virtual void remove(Renderable &);
30 void populate_cache() const;
33 virtual void setup_frame(Renderer &);
34 virtual void finish_frame();
36 virtual void render(Renderer &, Tag = Tag()) const;