]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/views.hxx
Updated to support new weather subsystem (visibility variable determins
[flightgear.git] / src / Main / views.hxx
index 0b13e4fa93109beb23ca24c9beda69ee5bffc989..764f6fd2c208fb4d28bbd66d5b507c648aecefac 100644 (file)
@@ -150,6 +150,7 @@ public:
     // up vector for the view (usually point straight up through the
     // top of the aircraft
     MAT3vec view_up;
+    sgVec3 sgview_up;
 
     // the vector pointing straight out the nose of the aircraft
     MAT3vec view_forward;
@@ -160,6 +161,7 @@ public:
     // Transformation matrix for the view direction offset relative to
     // the AIRCRAFT matrix
     MAT3mat VIEW_OFFSET;
+    sgMat4 sgVIEW_OFFSET;
 
     // Current model view matrix;
     GLfloat MODEL_VIEW[16];
@@ -184,14 +186,6 @@ public:
     // Initialize a view class
     void Init( void );
 
-    // Basically, this is a modified version of the Mesa gluLookAt()
-    // function that's been modified slightly so we can capture the
-    // result (and use it later) otherwise this all gets calculated in
-    // OpenGL land and we don't have access to the results.
-    /* void LookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
-                GLdouble centerx, GLdouble centery, GLdouble centerz,
-                GLdouble upx, GLdouble upy, GLdouble upz ); */
-
     // Update the view volume, position, and orientation
     void UpdateViewParams( void );