1 #ifndef MSP_GL_WINDOWVIEW_H_
2 #define MSP_GL_WINDOWVIEW_H_
4 #include <sigc++/trackable.h>
5 #include <msp/graphics/window.h>
7 #include "windowview_backend.h"
13 A view targeting a Graphics::Window.
15 After rendering, the result is presented in the window.
17 The aspect ratio of the view's Camera is automatically updated to match that of
20 class WindowView: public WindowViewBackend, public sigc::trackable
22 friend WindowViewBackend;
25 Graphics::Window &window;
29 WindowView(Graphics::Window &);
31 Graphics::Window &get_window() { return window; }
32 virtual unsigned get_width() const { return window.get_width(); }
33 virtual unsigned get_height() const { return window.get_height(); }
38 void window_resized(unsigned, unsigned);