2 // options.hxx -- class to handle command line options
4 // Written by Curtis Olson, started April 1998.
6 // Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 // (Log is kept at end of this file)
31 # error This library requires C++
35 #define FG_OPTIONS_OK 0
36 #define FG_OPTIONS_HELP 1
37 #define FG_OPTIONS_ERROR 2
44 // ID of initial starting airport
48 int hud_status; // HUD on/off
51 int fog; // Fog enabled/disabled
52 int fullscreen; // Full screen mode enabled/disabled
53 int shading; // shading method, 0 = Flat, 1 = Smooth
54 int skyblend; // Blend sky to haze (using polygons) or just clear
55 int textures; // Textures enabled/disabled
56 int wireframe; // Wireframe mode enabled/disabled
59 int tile_radius; // Square radius of rendered tiles. for instance
60 // if tile_radius = 3 then a 3 x 3 grid of tiles will
61 // be drawn. Increase this to see terrain that is
65 int time_offset; // Offset true time by this many seconds
70 // Parse the command line options
71 int parse( int argc, char **argv );
73 // Print usage message
82 extern fgOPTIONS current_options;
85 #endif /* _OPTIONS_HXX */
89 // Revision 1.6 1998/05/06 03:16:26 curt
90 // Added an averaged global frame rate counter.
91 // Added an option to control tile radius.
93 // Revision 1.5 1998/05/03 00:47:32 curt
94 // Added an option to enable/disable full-screen mode.
96 // Revision 1.4 1998/04/30 12:34:19 curt
97 // Added command line rendering options:
98 // enable/disable fog/haze
99 // specify smooth/flat shading
100 // disable sky blending and just use a solid color
101 // enable wireframe drawing mode
103 // Revision 1.3 1998/04/28 01:20:23 curt
104 // Type-ified fgTIME and fgVIEW.
105 // Added a command line option to disable textures.
107 // Revision 1.2 1998/04/25 15:11:13 curt
108 // Added an command line option to set starting position based on airport ID.
110 // Revision 1.1 1998/04/24 00:49:21 curt
111 // Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
112 // Trying out some different option parsing code.
113 // Some code reorganization.