]> git.tdb.fi Git - libs/gl.git/blob - source/scene.h
Add class Renderable
[libs/gl.git] / source / scene.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_SCENE_H_
9 #define MSP_GL_SCENE_H_
10
11 #include <set>
12 #include "renderable.h"
13
14 namespace Msp {
15 namespace GL {
16
17 class Scene: public Renderable
18 {
19 private:
20         std::set<const Renderable *> renderables;
21
22 public:
23         void add(const Renderable &);
24         void remove(const Renderable &);
25
26         virtual bool has_pass(const std::string &) const { return true; }
27         virtual void render() const;
28         virtual void render(const std::string &) const;
29 };
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif