1 #ifndef MSP_GL_INSTANCESCENE_H_
2 #define MSP_GL_INSTANCESCENE_H_
6 #include <msp/core/attributes.h>
7 #include <msp/core/inttypes.h>
14 A Scene optimized for rendering instanced Renderables, such as ObjectInstances.
15 All Renderables with the same instance key are rendered consecutively; within
16 the same key rendering order is unspecified.
18 class DEPRECATED InstanceScene: public Scene
21 typedef std::set<Renderable *> RenderableSet;
22 typedef std::map<IntPtr, RenderableSet> InstanceMap;
24 InstanceMap renderables;
27 virtual void add(Renderable &);
28 virtual void remove(Renderable &);
30 virtual void setup_frame(Renderer &);
31 virtual void finish_frame();
33 virtual void render(Renderer &, Tag tag = Tag()) const;