]> git.mxchange.org Git - flightgear.git/blobdiff - Main/views.hxx
Modifications to incorporate Jon S. Berndts flight model code.
[flightgear.git] / Main / views.hxx
index 60520ad6931999e616592e6583a7f00c7d5933fc..f3de02a8460a341935988c8e2ec79c960a6492b0 100644 (file)
@@ -47,6 +47,8 @@
 // Define a structure containing view information
 class FGView {
 
+public:
+
     // the current offset from forward for viewing
     double view_offset;
 
@@ -170,10 +172,10 @@ public:
     inline void force_update_fov_math() { update_fov = true; }
 
     // Update the view parameters
-    void UpdateViewMath( FGState *f );
+    void UpdateViewMath( FGInterface *f );
 
     // Update the "World to Eye" transformation matrix
-    void UpdateWorldToEye( FGState *f );
+    void UpdateWorldToEye( FGInterface *f );
 
     // Update the field of view coefficients
     void UpdateFOV( const fgOPTIONS& o );
@@ -218,7 +220,7 @@ public:
     inline double *get_surface_south() { return surface_south; }
     inline double *get_surface_east() { return surface_east; }
     inline double *get_local_up() { return local_up; }
-    inline MAT3mat *get_WORLD_TO_EYE() const { return &WORLD_TO_EYE; }
+    inline const MAT3mat *get_WORLD_TO_EYE() const { return &WORLD_TO_EYE; }
     inline GLdouble *get_MODEL_VIEW() { return MODEL_VIEW; }
 };
 
@@ -230,6 +232,25 @@ extern FGView current_view;
 
 
 // $Log$
+// Revision 1.21  1999/02/05 21:29:15  curt
+// Modifications to incorporate Jon S. Berndts flight model code.
+//
+// Revision 1.20  1999/02/02 20:13:38  curt
+// MSVC++ portability changes by Bernie Bright:
+//
+// Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
+// Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
+// Simulator/Cockpit/hud.cxx: Added Standard headers
+// Simulator/Cockpit/panel.cxx: Redefinition of default parameter
+// Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
+// Simulator/Main/fg_init.cxx:
+// Simulator/Main/GLUTmain.cxx:
+// Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
+// Simulator/Objects/material.hxx:
+// Simulator/Time/timestamp.hxx: VC++ friend kludge
+// Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
+// Simulator/Main/views.hxx: Added a constant
+//
 // Revision 1.19  1999/02/01 21:33:36  curt
 // Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
 // Jon accepted my offer to do this and thought it was a good idea.