]> git.tdb.fi Git - libs/gl.git/blobdiff - source/windowview.h
Support rendering View with an externally provided Renderer
[libs/gl.git] / source / windowview.h
index 825601f186cd14b2da061c320938f45a30eff2f8..0c5e1b1d72b796b15a7133b3ad54609956e81367 100644 (file)
@@ -20,10 +20,10 @@ public:
 
        Graphics::Window &get_window() { return window; }
        Graphics::GLContext &get_context() { return context; }
-       unsigned get_width() const { return window.get_width(); }
-       unsigned get_height() const { return window.get_height(); }
+       virtual unsigned get_width() const { return window.get_width(); }
+       virtual unsigned get_height() const { return window.get_height(); }
 
-       virtual void render();
+       virtual void render(Renderer &);
 
 private:
        void window_resized(unsigned, unsigned);