]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/windowview.h
Move WindowView::render to the backend
[libs/gl.git] / source / render / windowview.h
index 93769f19217ed35f3b3fbcfd277e7cf6cccd1363..43b8d442ea85dd47fbf8745a0265f3c1d5086a68 100644 (file)
@@ -12,13 +12,15 @@ namespace GL {
 /**
 A view targeting a Graphics::Window.
 
-After rendering, buffers are swapped to show the result in the window.
+After rendering, the result is presented in the window.
 
 The aspect ratio of the view's Camera is automatically updated to match that of
 the window.
 */
 class WindowView: public WindowViewBackend, public sigc::trackable
 {
+       friend WindowViewBackend;
+
 private:
        Graphics::Window &window;
        Device &device;
@@ -31,7 +33,6 @@ public:
        virtual unsigned get_height() const { return window.get_height(); }
 
        using View::render;
-       virtual void render(Renderer &);
 
 private:
        void window_resized(unsigned, unsigned);