#endif
#include <simgear/debug/logstream.hxx>
+#include <simgear/constants.h>
#include "viewer.hxx"
// Constructor
-FGViewer::FGViewer( void )
+FGViewer::FGViewer( void ):
+ fov(55.0),
+ view_offset(0.0),
+ goal_view_offset(0.0)
{
-}
-
-
-// Initialize a view structure
-void FGViewer::init( void ) {
- FG_LOG( FG_VIEW, FG_ALERT, "Shouldn't ever see this" );
- exit(-1);
+ sgSetVec3( pilot_offset, 0.0, 0.0, 0.0 );
+ sgdZeroVec3(geod_view_pos);
+ sgdZeroVec3(abs_view_pos);
+ sea_level_radius = SG_EQUATORIAL_RADIUS_M;
+ //a reasonable guess for init, so that the math doesn't blow up
}
// Update the view parameters
void FGViewer::update() {
- FG_LOG( FG_VIEW, FG_ALERT, "Shouldn't ever see this" );
- exit(-1);
+ SG_LOG( SG_VIEW, SG_ALERT, "Shouldn't ever see this" );
}