X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fview.h;h=6aca12f1a117ab3d3c0f14ffdfb565075d289d0b;hp=08629fa065ab159725a5d025ca0b4dc1093f488b;hb=6b0a93110454cc8d84d0d9b9b29fe9d0ecbaa4d5;hpb=e07b25a160c5d3231282df948017460ac581b4d7 diff --git a/source/view.h b/source/view.h index 08629fa0..6aca12f1 100644 --- a/source/view.h +++ b/source/view.h @@ -26,12 +26,13 @@ protected: 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 + float get_aspect() const { return get_aspect_ratio(); } void synchronize_camera_aspect(Camera &); virtual void render();