]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.h
Add setup/finish_render hooks to Object
[libs/gl.git] / source / object.h
index 8a707665c8871132e4c555f8a9fc88b5108a10c6..7820d29c366df0b1392471c3e8220ce7f8fe728d 100644 (file)
@@ -66,6 +66,10 @@ public:
        called before and after drawing the mesh. */
        virtual void render(Renderer &, const ObjectInstance &, const Tag & = Tag()) const;
 
+protected:
+       virtual void setup_render(Renderer &, const Tag &) const { }
+       virtual void finish_render(Renderer &, const Tag &) const { }
+
 private:
        const RenderPass *get_pass(const Tag &) const;
 };