X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frenderable.h;h=c055cefa65b989047ff0b324ab53259204ac77c1;hb=8eb9a8d90e5597154dab666481037b306b7bbca2;hp=8e31d5a7ac79e0f4a379b581da4b68ef37823c05;hpb=25c81b4953dd38993250321b9407ce8b0139cbeb;p=libs%2Fgl.git diff --git a/source/renderable.h b/source/renderable.h index 8e31d5a7..c055cefa 100644 --- a/source/renderable.h +++ b/source/renderable.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007, 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_RENDERABLE_H_ #define MSP_GL_RENDERABLE_H_ @@ -23,6 +16,9 @@ protected: public: virtual ~Renderable() { } + /** Returns a key used for grouping Renderables in an InstanceScene. */ + virtual long get_instance_key() const { return 0; } + virtual void render(const Tag & = Tag()) const; virtual void render(Renderer &, const Tag & = Tag()) const; };