1 #ifndef MSP_GL_ORDEREDSCENE_H_
2 #define MSP_GL_ORDEREDSCENE_H_
11 A scene that renders its contents in a specific order. Inserting Renderables
12 in the middle and removing them are O(N) operations.
14 class OrderedScene: public Scene
20 typedef std::list<Renderable *> RenderableList;
22 RenderableList renderables;
25 virtual void add(Renderable &);
26 virtual void remove(Renderable &);
27 void prepend(Renderable &);
28 void insert(unsigned, Renderable &);
29 void insert_after(Renderable &, Renderable &);
31 virtual void setup_frame(Renderer &);
32 virtual void finish_frame();
35 virtual void render(Renderer &, Tag = Tag()) const;