enum fgViewType {
FG_LOOKFROM = 0,
- FG_LOOKAT = 1,
+ FG_LOOKAT = 1
};
// Define a structure containing view information
enum fgScalingType { // nominal Field Of View actually applies to ...
FG_SCALING_WIDTH, // window width
- FG_SCALING_MAX, // max(width, height)
+ FG_SCALING_MAX // max(width, height)
// FG_SCALING_G_MEAN, // geometric_mean(width, height)
// FG_SCALING_INDEPENDENT // whole screen
};
virtual void init ();
virtual void bind ();
virtual void unbind ();
- void update (int dt);
+ void update (double dt);
//////////////////////////////////////////////////////////////////////
inline void set_dirty() { _dirty = true; }
inline void set_clean() { _dirty = false; }
+
+ // return eye location...
+ virtual FGLocation * getFGLocation () const { return _location; }
private:
//////////////////////////////////////////////////////////////////
void recalc ();
- void recalcPositionVectors (double lon_deg, double lat_deg, double alt_ft) const;
+ void recalcLookFrom();
+ void recalcLookAt();
+ void copyLocationData();
void updateFromModelLocation (FGLocation * location);
- void recalcOurOwnLocation (double lon_deg, double lat_deg, double alt_ft,
+ void recalcOurOwnLocation (FGLocation * location, double lon_deg, double lat_deg, double alt_ft,
double roll_deg, double pitch_deg, double heading_deg);
// add to _heading_offset_deg