X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fwindowview.h;h=43b8d442ea85dd47fbf8745a0265f3c1d5086a68;hb=9e63512930bc7dace6dc169c65161961e5dcfcf6;hp=031cd49d142534049e96be8dd137fa27c83730ed;hpb=b752e5384eb56a389d50e0527529d410e6455ba9;p=libs%2Fgl.git diff --git a/source/render/windowview.h b/source/render/windowview.h index 031cd49d..43b8d442 100644 --- a/source/render/windowview.h +++ b/source/render/windowview.h @@ -4,7 +4,7 @@ #include #include #include "device.h" -#include "view.h" +#include "windowview_backend.h" namespace Msp { namespace GL { @@ -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 View, public sigc::trackable +class WindowView: public WindowViewBackend, public sigc::trackable { + friend WindowViewBackend; + private: Graphics::Window &window; Device &device; @@ -31,12 +33,9 @@ public: virtual unsigned get_height() const { return window.get_height(); } using View::render; - virtual void render(Renderer &); private: void window_resized(unsigned, unsigned); - - virtual const Framebuffer &get_target() const; }; } // namespace GL