1 #ifndef MSP_GL_WINDOWVIEW_H_
2 #define MSP_GL_WINDOWVIEW_H_
4 #include <sigc++/trackable.h>
5 #include <msp/graphics/glcontext.h>
6 #include <msp/graphics/window.h>
12 class WindowView: public View
15 Graphics::Window &window;
16 Graphics::GLContext &context;
19 WindowView(Graphics::Window &, Graphics::GLContext &);
21 Graphics::Window &get_window() { return window; }
22 Graphics::GLContext &get_context() { return context; }
23 virtual unsigned get_width() const { return window.get_width(); }
24 virtual unsigned get_height() const { return window.get_height(); }
26 virtual void render(Renderer &);
29 void window_resized(unsigned, unsigned);