]> git.tdb.fi Git - libs/gl.git/blob - source/simplescene.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / simplescene.h
1 #ifndef MSP_GL_SIMPLESCENE_H_
2 #define MSP_GL_SIMPLESCENE_H_
3
4 #include <set>
5 #include "scene.h"
6
7 namespace Msp {
8 namespace GL {
9
10 /**
11 The simplest possible Scene.  Rendering order is unspecified.
12 */
13 class SimpleScene: public Scene
14 {
15 private:
16         typedef std::set<const Renderable *> RenderableSet;
17
18         RenderableSet renderables;
19
20 public:
21         virtual void add(const Renderable &);
22         virtual void remove(const Renderable &);
23
24         using Scene::render;
25         virtual void render(Renderer &, const Tag & = Tag()) const;
26 };
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif