]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Generalize instancing to all Renderables
[libs/gl.git] / source / renderable.h
index 8e31d5a7ac79e0f4a379b581da4b68ef37823c05..9fe46956540d4af243e61b2a9316c7eb08ccf020 100644 (file)
@@ -23,6 +23,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;
 };