]> git.tdb.fi Git - libs/gl.git/blob - source/scene.h
Style update: add spaces around assignment operators
[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 <map>
12 #include <set>
13 #include "renderable.h"
14
15 namespace Msp {
16 namespace GL {
17
18 class Object;
19 class ObjectInstance;
20
21 class Scene: public Renderable
22 {
23 private:
24         typedef std::set<const ObjectInstance *> InstanceSet;
25         typedef std::map<const Object *, InstanceSet> ObjectMap;
26         typedef std::set<const Renderable *> RenderableSet;
27
28         ObjectMap objects;
29         RenderableSet renderables;
30
31 public:
32         void add(const Renderable &);
33         void remove(const Renderable &);
34
35         virtual void render(const Tag &tag = Tag()) const;
36 };
37
38 } // namespace GL
39 } // namespace Msp
40
41 #endif