X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fwindowview.h;h=93769f19217ed35f3b3fbcfd277e7cf6cccd1363;hb=b9e720f36185c6fe4d39a1056ecb88dec0ce950d;hp=9646a65d746ebcef6e7e5aa15db422d93dc5d602;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c;p=libs%2Fgl.git diff --git a/source/render/windowview.h b/source/render/windowview.h index 9646a65d..93769f19 100644 --- a/source/render/windowview.h +++ b/source/render/windowview.h @@ -2,9 +2,9 @@ #define MSP_GL_WINDOWVIEW_H_ #include -#include #include -#include "view.h" +#include "device.h" +#include "windowview_backend.h" namespace Msp { namespace GL { @@ -17,17 +17,16 @@ After rendering, buffers are swapped to show the result 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 { private: Graphics::Window &window; - Graphics::GLContext &context; + Device &device; public: - WindowView(Graphics::Window &, Graphics::GLContext &); + WindowView(Graphics::Window &); Graphics::Window &get_window() { return window; } - Graphics::GLContext &get_context() { return context; } virtual unsigned get_width() const { return window.get_width(); } virtual unsigned get_height() const { return window.get_height(); }