From: Mikko Rasa Date: Fri, 16 Sep 2016 23:15:20 +0000 (+0300) Subject: Add some accessors to View X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1bd2a77b4999d240a27e13a9069e8fca3410d363;p=libs%2Fgl.git Add some accessors to View --- 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 &);