#include <Joystick/joystick.h>
#include <Math/fg_geodesy.h>
#include <Math/mat3.h>
-#include <Math/polar.h>
+#include <Math/polar3d.h>
#include <Scenery/scenery.hxx>
#include <Scenery/tilemgr.hxx>
#include <Time/event.hxx>
o = ¤t_options;
w = ¤t_weather;
- // xglDisable( GL_DITHER );
+ // Go full screen if requested ...
+ if ( o->fullscreen ) {
+ glutFullScreen();
+ }
// If enabled, normal vectors specified with glNormal are scaled
// to unit length after transformation. See glNormal.
// Initialize GLUT and define a main window
int fgGlutInit( int argc, char **argv ) {
+ fgOPTIONS *o;
+
+ o = ¤t_options;
+
// GLUT will extract all glut specific options so later on we only
// need wory about our own.
xglutInit(&argc, argv);
// $Log$
+// Revision 1.10 1998/05/03 00:47:31 curt
+// Added an option to enable/disable full-screen mode.
+//
// Revision 1.9 1998/04/30 12:34:17 curt
// Added command line rendering options:
// enable/disable fog/haze
// FG_Altitude = FG_Runway_altitude + 3.758099;
// Initial Position at (SEZ) SEDONA airport
- FG_Longitude = (-111.7884614 + 0.01) * DEG_TO_RAD;
- FG_Latitude = ( 34.8486289 - 0.015) * DEG_TO_RAD;
- FG_Runway_altitude = (4827 + 450);
- FG_Altitude = FG_Runway_altitude + 3.758099;
+ // FG_Longitude = (-111.7884614 + 0.01) * DEG_TO_RAD;
+ // FG_Latitude = ( 34.8486289 - 0.015) * DEG_TO_RAD;
+ // FG_Runway_altitude = (4827 + 450);
+ // FG_Altitude = FG_Runway_altitude + 3.758099;
// Initial Position: Somewhere near the Grand Canyon
// FG_Longitude = ( -112.5 ) * DEG_TO_RAD;
// $Log$
+// Revision 1.9 1998/05/03 00:47:31 curt
+// Added an option to enable/disable full-screen mode.
+//
// Revision 1.8 1998/04/30 12:34:18 curt
// Added command line rendering options:
// enable/disable fog/haze
// Rendering options
fog = 1;
+ fullscreen = 0;
shading = 1;
skyblend = 1;
textures = 1;
fog = 0;
} else if ( strcmp(argv[i], "--enable-fog") == 0 ) {
fog = 1;
+ } else if ( strcmp(argv[i], "--disable-fullscreen") == 0 ) {
+ fullscreen = 0;
+ } else if ( strcmp(argv[i], "--enable-fullscreen") == 0 ) {
+ fullscreen = 1;
} else if ( strcmp(argv[i], "--shading-flat") == 0 ) {
shading = 0;
} else if ( strcmp(argv[i], "--shading-smooth") == 0 ) {
printf("Rendering Options:\n");
printf("\t--disable-fog: disable fog/haze\n");
printf("\t--enable-fog: enable fog/haze\n");
+ printf("\t--disable-fullscreen: disable fullscreen mode\n");
+ printf("\t--enable-fullscreen: enable fullscreen mode\n");
printf("\t--shading-flat: enable flat shading\n");
printf("\t--shading-smooth: enable smooth shading\n");
printf("\t--disable-skyblend: disable sky blending\n");
// $Log$
+// Revision 1.6 1998/05/03 00:47:32 curt
+// Added an option to enable/disable full-screen mode.
+//
// Revision 1.5 1998/04/30 12:34:19 curt
// Added command line rendering options:
// enable/disable fog/haze
// Rendering options
int fog; // Fog enabled/disabled
+ int fullscreen; // Full screen mode enabled/disabled
int shading; // shading method, 0 = Flat, 1 = Smooth
int skyblend; // Blend sky to haze (using polygons) or just clear
int textures; // Textures enabled/disabled
// $Log$
+// Revision 1.5 1998/05/03 00:47:32 curt
+// Added an option to enable/disable full-screen mode.
+//
// Revision 1.4 1998/04/30 12:34:19 curt
// Added command line rendering options:
// enable/disable fog/haze