X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Finstancescene.h;h=a5ac2cd1c743e9fd250d5489d3e13c5902d552a7;hp=3f345124b47d5c086c48b81326f01230586212b3;hb=HEAD;hpb=d386eadfd08b556ecb05627a7ceca14652e8b1e5 diff --git a/source/instancescene.h b/source/instancescene.h deleted file mode 100644 index 3f345124..00000000 --- a/source/instancescene.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef MSP_GL_INSTANCESCENE_H_ -#define MSP_GL_INSTANCESCENE_H_ - -#include -#include -#include "scene.h" - -namespace Msp { -namespace GL { - -/** -A Scene optimized for rendering instanced Renderables, such as ObjectInstances. -All Renderables with the same instance key are rendered consecutively; within -the same key rendering order is unspecified. -*/ -class InstanceScene: public Scene -{ -private: - typedef std::set RenderableSet; - typedef std::map InstanceMap; - - InstanceMap renderables; - -public: - virtual void add(Renderable &); - virtual void remove(Renderable &); - - virtual void setup_frame(Renderer &); - virtual void finish_frame(); - - using Scene::render; - virtual void render(Renderer &, const Tag &tag = Tag()) const; -}; - -} // namespace GL -} // namespace Msp - -#endif