X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fview.h;h=bd39e8ff7f11c6835b07a62a233b858b60472735;hp=acd5a65cfec98a1753642dfcb75c4393e879ed31;hb=7791ca3eac17e355d1de508b1730dc854ed7712d;hpb=a525c632144d3dcefe373916bdde789727d2230d diff --git a/source/view.h b/source/view.h index acd5a65c..bd39e8ff 100644 --- a/source/view.h +++ b/source/view.h @@ -22,6 +22,7 @@ private: Graphics::Window &window; Graphics::GLContext &context; Framebuffer ⌖ + Camera *camera; const Renderable *content; std::list synced_cameras; @@ -34,7 +35,10 @@ public: unsigned get_height() const { return window.get_height(); } float get_aspect() const { return static_cast(get_width())/get_height(); } + void set_camera(Camera *); void set_content(const Renderable *); + + // Deprecated void synchronize_camera_aspect(Camera &); void render();