]> git.tdb.fi Git - libs/gl.git/blobdiff - source/scene.h
Drop Renderable::has_pass; renderables are now expected to ignore unknown passes
[libs/gl.git] / source / scene.h
index f4e128105f75535d8398f06267924cfb50f8568e..05c5b6785b3bf53cb2de92c2d45ee180c85bbc0e 100644 (file)
@@ -8,24 +8,27 @@ 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:
+       std::map<const Object *, std::set<const ObjectInstance *> > objects;
        std::set<const Renderable *> renderables;
 
 public:
        void add(const Renderable &);
        void remove(const Renderable &);
 
-       virtual bool has_pass(const std::string &) const { return true; }
-       virtual void render() const;
-       virtual void render(const std::string &) const;
+       virtual void render(const Tag &tag=Tag()) const;
 };
 
 } // namespace GL