]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderable.h
Change the setup/finish_frame interface to be non-const
[libs/gl.git] / source / renderable.h
index 18319cb4595a398aa362c70d583e8ec37665702b..e90ab0243ee140173256ee3f2a6a1ba904fce7cc 100644 (file)
@@ -45,10 +45,10 @@ public:
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return 0; }
 
        /** Called when starting to render a new frame. */
-       virtual void setup_frame() const { }
+       virtual void setup_frame(Renderer &) { }
 
        /** Called when a complete frame has been rendered. */
-       virtual void finish_frame() const { }
+       virtual void finish_frame() { }
 
        /** Renders the Renderable.  Implementors should take care to return the
        renderer to the state it was in, for example by using Renderer::Push. */