]> git.tdb.fi Git - libs/gl.git/blobdiff - source/scene.h
Support specifying elements in PrimitiveBuilder
[libs/gl.git] / source / scene.h
index f4e128105f75535d8398f06267924cfb50f8568e..9766ab21a0292a4a217e76c086fcefae4d77a4a8 100644 (file)
@@ -17,15 +17,19 @@ namespace GL {
 class Scene: public Renderable
 {
 private:
-       std::set<const Renderable *> renderables;
+       struct Compare
+       {
+               bool operator()(const Renderable *, const Renderable *) const;
+       };
+
+       std::set<const Renderable *, Compare> 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 bool has_pass(const Tag &) const { return true; }
+       virtual void render(const Tag &tag=Tag()) const;
 };
 
 } // namespace GL