X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fview.h;h=cf0f4d64ed8d8feceabdcf10522782ce97c335b0;hb=df20a7e137542a4156cc5ffa8118d59de6b68547;hp=08629fa065ab159725a5d025ca0b4dc1093f488b;hpb=e07b25a160c5d3231282df948017460ac581b4d7;p=libs%2Fgl.git diff --git a/source/view.h b/source/view.h index 08629fa0..cf0f4d64 100644 --- a/source/view.h +++ b/source/view.h @@ -19,21 +19,17 @@ protected: Framebuffer ⌖ Camera *camera; Renderable *content; - std::list synced_cameras; - View(); + View(Framebuffer &); public: virtual unsigned get_width() const { return target.get_width(); } virtual unsigned get_height() const { return target.get_height(); } - float get_aspect() const { return static_cast(get_width())/get_height(); } + float get_aspect_ratio() const { return static_cast(get_width())/get_height(); } void set_camera(Camera *); void set_content(Renderable *); - // Deprecated - void synchronize_camera_aspect(Camera &); - virtual void render(); };