]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / renderable.h
index b9b6b080e363150616dc809072217dffda23395e..c055cefa65b989047ff0b324ab53259204ac77c1 100644 (file)
@@ -1,25 +1,26 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_RENDERABLE_H_
 #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() { }
+
+       /** Returns a key used for grouping Renderables in an InstanceScene. */
+       virtual long get_instance_key() const { return 0; }
 
-       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