5 #include <msp/graphics/glcontext.h>
6 #include <msp/graphics/window.h>
16 Manages the presentation of rendering results on the screen.
21 Graphics::Window &window;
22 Graphics::GLContext &context;
24 const Renderable *content;
25 std::list<Camera *> synced_cameras;
28 View(Graphics::Window &, Graphics::GLContext &);
30 Graphics::Window &get_window() { return window; }
31 Graphics::GLContext &get_context() { return context; }
32 unsigned get_width() const { return window.get_width(); }
33 unsigned get_height() const { return window.get_height(); }
35 void set_content(const Renderable *);
36 void synchronize_camera_aspect(Camera &);
41 void window_resized(unsigned, unsigned);