]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Add some accessors to View
[libs/gl.git] / 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 &);