]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Drop Renderable::has_pass; renderables are now expected to ignore unknown passes
[libs/gl.git] / source / renderable.h
index b9b6b080e363150616dc809072217dffda23395e..6e433d3e9eb5b489a99a99464f9b9d0983b4e253 100644 (file)
@@ -9,17 +9,19 @@ Distributed under the LGPL
 #define MSP_GL_RENDERABLE_H_
 
 #include <string>
+#include "tag.h"
 
 namespace Msp {
 namespace GL {
 
 class Renderable
 {
+protected:
+       Renderable() { }
 public:
-       virtual bool has_pass(const std::string &pn) const =0;
+       virtual ~Renderable() { }
 
-       virtual void render() const =0;
-       virtual void render(const std::string &pn) const =0;
+       virtual void render(const Tag &tag=Tag()) const =0;
 };
 
 } // namespace Msp