]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Bind ProgramData to a Program upon construction
[libs/gl.git] / source / renderable.h
index b9b6b080e363150616dc809072217dffda23395e..8e31d5a7ac79e0f4a379b581da4b68ef37823c05 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Copyright © 2007, 2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -9,17 +9,22 @@ Distributed under the LGPL
 #define MSP_GL_RENDERABLE_H_
 
 #include <string>
+#include "tag.h"
 
 namespace Msp {
 namespace GL {
 
+class Renderer;
+
 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()) const;
+       virtual void render(Renderer &, const Tag & = Tag()) const;
 };
 
 } // namespace Msp