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