00001 /* 00002 * This file is part of the "Archon" framework. 00003 * (http://files3d.sourceforge.net) 00004 * 00005 * Copyright © 2002 by Kristian Spangsege and Brian Kristiansen. 00006 * 00007 * Permission to use, copy, modify, and distribute this software and 00008 * its documentation under the terms of the GNU General Public License is 00009 * hereby granted. No representations are made about the suitability of 00010 * this software for any purpose. It is provided "as is" without express 00011 * or implied warranty. See the GNU General Public License 00012 * (http://www.gnu.org/copyleft/gpl.html) for more details. 00013 * 00014 * The characters in this file are ISO8859-1 encoded. 00015 * 00016 * The documentation in this file is in "Doxygen" style 00017 * (http://www.doxygen.org). 00018 */ 00019 00020 #include <stdio.h> 00021 #include <string.h> 00022 00023 #include <archon/util/parse_values.H> 00024 #include <archon/util/color.H> 00025 00026 #include <archon/3dconsole/options.H> 00027 00028 namespace Archon 00029 { 00030 using namespace Utilities; 00031 using namespace Math; 00032 00033 namespace Console3d 00034 { 00035 bool opt_help = false; 00036 string opt_configFile; 00037 bool opt_saveConfig = false; 00038 bool opt_dumpNodeDefs = false; 00039 bool opt_fullScreen = false; 00040 Options::IntByInt opt_resolution = { 1000, 1000 }; 00041 ColorRGBA opt_backgroundColor = Color::black; 00042 Vector3 opt_eyepoint = Vector3(0, 0, 10); 00043 Vector3 opt_lookat = Vector3(0, 0, 0); 00044 double opt_fieldOfView = 0.78539816339744830961; // pi/4 00045 bool opt_headLight = true; 00046 bool opt_showLightSources = false; 00047 bool opt_wireframe = false; 00048 bool opt_texture = true; 00049 bool opt_mipmap = false; 00050 bool opt_showNormals = false; 00051 bool opt_textAsQuadsMode = false; 00052 double opt_frameRate = 40; 00053 Options::IntByInt opt_subdivision = { 25, 25 }; 00054 double opt_applicationHeartbeat = 1.5; 00055 int opt_corbaEndpointPort = -1; // Auto assign 00056 bool opt_acceptClients = false; 00057 string opt_consoleName = "archon"; 00058 bool opt_dumpScene = false; 00059 bool opt_progressiveLoad = false; 00060 string opt_fontPath = "/usr/share/fonts/default/Type1"; 00061 } 00062 } 00063 00064