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
17 typedef std::list<const Renderable *> RenderableList;
19 RenderableList renderables;
22 virtual void add(const Renderable &);
23 virtual void remove(const Renderable &);
24 void prepend(const Renderable &);
25 void insert(unsigned, const Renderable &);
26 void insert_after(const Renderable &, const Renderable &);
28 virtual void setup_frame() const;
29 virtual void finish_frame() const;
32 virtual void render(Renderer &, const Tag & = Tag()) const;