From 1bd2a77b4999d240a27e13a9069e8fca3410d363 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 17 Sep 2016 02:15:20 +0300 Subject: [PATCH] Add some accessors to View --- source/view.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/view.h b/source/view.h index 93eb49d7..0dd63895 100644 --- a/source/view.h +++ b/source/view.h @@ -27,6 +27,11 @@ private: public: View(Graphics::Window &, Graphics::GLContext &); + Graphics::Window &get_window() { return window; } + Graphics::GLContext &get_context() { return context; } + unsigned get_width() const { return window.get_width(); } + unsigned get_height() const { return window.get_height(); } + void set_content(const Renderable *); void synchronize_camera_aspect(Camera &); -- 2.43.0