]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewer_lookat.cxx
Added support for managing fov via the property manager so the --fov= option
[flightgear.git] / src / Main / viewer_lookat.cxx
index 74d5be64c98d875da73cae43f0f6d389764a017c..82c35cce87bed2ba50640c7b8f554083df4e6746 100644 (file)
@@ -45,6 +45,7 @@
 // Constructor
 FGViewerLookAt::FGViewerLookAt( void )
 {
+    set_reverse_view_offset(true);
 }
 
 
@@ -102,8 +103,7 @@ static void print_sgMat4( sgMat4 &in) {
 // Update the view parameters
 void FGViewerLookAt::update() {
     Point3D tmp;
-    sgVec3 minus_z, forward;
-    sgMat4 VIEWo;
+    sgVec3 minus_z;
 
     // calculate the cartesion coords of the current lat/lon/0 elev
     Point3D p = Point3D( geod_view_pos[0], 
@@ -178,8 +178,8 @@ void FGViewerLookAt::update() {
     // THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
     // THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
     // this in gui.cxx for now just testing
-    extern float quat_mat[4][4];
-    sgPreMultMat4( VIEW, quat_mat);
+    extern float GuiQuat_mat[4][4];
+    sgPreMultMat4( VIEW, GuiQuat_mat);
     // !!!!!!!!!! testing      
 
     // Given a vector pointing straight down (-Z), map into onto the