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