X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fbfi.cxx;h=63687fea0d9cc513f6d956a59fd5e9543fbd1c6d;hb=7a4da944253124295957728d9e8e550ddbb913d7;hp=8b749b2bdee84887e6d8021057b00c9a946b2ca7;hpb=f780c27787836a552f5dd13a980228e3ae6e711e;p=flightgear.git diff --git a/src/Main/bfi.cxx b/src/Main/bfi.cxx index 8b749b2bd..63687fea0 100644 --- a/src/Main/bfi.cxx +++ b/src/Main/bfi.cxx @@ -209,6 +209,7 @@ FGBFI::init () fgTie("/environment/wind-down", getWindDown, setWindDown); // View + fgTie("/sim/field-of-view", getFOV, setFOV); fgTie("/sim/view/axes/long", (double(*)())0, setViewAxisLong); fgTie("/sim/view/axes/lat", (double(*)())0, setViewAxisLat); @@ -1289,6 +1290,18 @@ FGBFI::setWindDown (double speed) // View. //////////////////////////////////////////////////////////////////////// +double +FGBFI::getFOV () +{ + globals->get_current_view()->get_fov(); +} + +void +FGBFI::setFOV (double fov) +{ + globals->get_current_view()->set_fov( fov ); +} + void FGBFI::setViewAxisLong (double axis) {