X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fsimplescene.h;fp=source%2Fsimplescene.h;h=b28b5c0ce12e628d4bfb1b1b1dbe7550746a7658;hp=0000000000000000000000000000000000000000;hb=9addd3d476245415244e59333a36a8fc0eae42bf;hpb=6fa59eb26c39443eb44feecd17b7a8ea45411730 diff --git a/source/simplescene.h b/source/simplescene.h new file mode 100644 index 00000000..b28b5c0c --- /dev/null +++ b/source/simplescene.h @@ -0,0 +1,37 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2010 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_GL_SIMPLESCENE_H_ +#define MSP_GL_SIMPLESCENE_H_ + +#include +#include "scene.h" + +namespace Msp { +namespace GL { + +/** +The simplest possible Scene. Rendering order is unspecified. +*/ +class SimpleScene: public Scene +{ +private: + typedef std::set RenderableSet; + + 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