]> git.tdb.fi Git - libs/gl.git/blob - source/render/simplescene.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / 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 A simple scene which renders its contents in an unspecified order.
12 */
13 class SimpleScene: public Scene
14 {
15 public:
16         using Scene::Loader;
17
18 private:
19         std::vector<Renderable *> content;
20
21 public:
22         virtual void add(Renderable &);
23         virtual void remove(Renderable &);
24
25         virtual void setup_frame(Renderer &);
26         virtual void finish_frame();
27
28         virtual void render(Renderer &, Tag = Tag()) const;
29 };
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif