X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finstancescene.h;h=a5ac2cd1c743e9fd250d5489d3e13c5902d552a7;hb=HEAD;hp=1f79d767ba0d69cbb48798a820e0f8900792b01b;hpb=9addd3d476245415244e59333a36a8fc0eae42bf;p=libs%2Fgl.git diff --git a/source/instancescene.h b/source/instancescene.h deleted file mode 100644 index 1f79d767..00000000 --- a/source/instancescene.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2008, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_INSTANCESCENE_H_ -#define MSP_GL_INSTANCESCENE_H_ - -#include -#include -#include "scene.h" - -namespace Msp { -namespace GL { - -class Object; -class ObjectInstance; - -/** -A Scene optimized for rendering ObjectInstances. All instances of the same -Object are rendered in one go; otherwise the rendering order is unspecified. -*/ -class InstanceScene: public Scene -{ -private: - typedef std::set InstanceSet; - typedef std::map ObjectMap; - typedef std::set RenderableSet; - - ObjectMap objects; - RenderableSet renderables; - -public: - virtual void add(const Renderable &); - virtual void remove(const Renderable &); - - virtual void render(const Tag &tag = Tag()) const; -}; - -} // namespace GL -} // namespace Msp - -#endif