X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fview.h;h=f7f47fc7b48fd7d37f349f73823fee017a3d5ad5;hp=acd5a65cfec98a1753642dfcb75c4393e879ed31;hb=6a045019fbd68738b77849629e6dfd3dfd9a4d93;hpb=3b6bbeda80d1db44348243c855bc433be23b949e diff --git a/source/view.h b/source/view.h index acd5a65c..f7f47fc7 100644 --- a/source/view.h +++ b/source/view.h @@ -22,7 +22,8 @@ private: Graphics::Window &window; Graphics::GLContext &context; Framebuffer ⌖ - const Renderable *content; + Camera *camera; + Renderable *content; std::list synced_cameras; public: @@ -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_content(const Renderable *); + void set_camera(Camera *); + void set_content(Renderable *); + + // Deprecated void synchronize_camera_aspect(Camera &); void render();