]> git.tdb.fi Git - libs/gl.git/blobdiff - source/scene.h
Require mspgbase now that Image was moved there
[libs/gl.git] / source / scene.h
index 9766ab21a0292a4a217e76c086fcefae4d77a4a8..e6de1c23e6becb3a94103a06e7d905832173534e 100644 (file)
@@ -8,21 +8,21 @@ Distributed under the LGPL
 #ifndef MSP_GL_SCENE_H_
 #define MSP_GL_SCENE_H_
 
+#include <map>
 #include <set>
 #include "renderable.h"
 
 namespace Msp {
 namespace GL {
 
+class Object;
+class ObjectInstance;
+
 class Scene: public Renderable
 {
 private:
-       struct Compare
-       {
-               bool operator()(const Renderable *, const Renderable *) const;
-       };
-
-       std::set<const Renderable *, Compare> renderables;
+       std::map<const Object *, std::set<const ObjectInstance *> > objects;
+       std::set<const Renderable *> renderables;
 
 public:
        void add(const Renderable &);