]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Add a rendering supervisor class
[libs/gl.git] / source / renderable.h
index 44b3c257b9a79b825e466be5d9d467827c350b38..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
 */
 
@@ -14,6 +14,8 @@ Distributed under the LGPL
 namespace Msp {
 namespace GL {
 
+class Renderer;
+
 class Renderable
 {
 protected:
@@ -21,7 +23,8 @@ protected:
 public:
        virtual ~Renderable() { }
 
-       virtual void render(const Tag &tag = Tag()) const =0;
+       virtual void render(const Tag & = Tag()) const;
+       virtual void render(Renderer &, const Tag & = Tag()) const;
 };
 
 } // namespace Msp