]> git.tdb.fi Git - libs/gl.git/commitdiff
Add some accessors to View
authorMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 23:15:20 +0000 (02:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 16 Sep 2016 23:15:20 +0000 (02:15 +0300)
source/view.h

index 93eb49d7d64c82d8223a21c406bea9aaf49675f4..0dd638959693f6c052494892a09a723b273a95a5 100644 (file)
@@ -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 &);