X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Forderedscene.h;h=53f7b008bd4965c61ca5f28291b10993b0b251c8;hp=6bb12192a851877887dd1b21dc1100c4554a7e18;hb=HEAD;hpb=9addd3d476245415244e59333a36a8fc0eae42bf diff --git a/source/orderedscene.h b/source/orderedscene.h deleted file mode 100644 index 6bb12192..00000000 --- a/source/orderedscene.h +++ /dev/null @@ -1,41 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_ORDEREDSCENE_H_ -#define MSP_GL_ORDEREDSCENE_H_ - -#include -#include - -namespace Msp { -namespace GL { - -/** -A scene that renders its contents in a specific order. Inserting Renderables -in the middle and removing them are O(N) operations. -*/ -class OrderedScene: public Scene -{ -private: - typedef std::list RenderableList; - - RenderableList renderables; - -public: - virtual void add(const Renderable &); - virtual void remove(const Renderable &); - void prepend(const Renderable &); - void insert(unsigned, const Renderable &); - void insert_after(const Renderable &, const Renderable &); - - virtual void render(const Tag & = Tag()) const; -}; - -} // namespace GL -} // namespace Msp - -#endif