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 "options.H" 00027 00028 namespace Archon 00029 { 00030 using namespace Utilities; 00031 using namespace Math; 00032 00033 namespace Raytracer 00034 { 00035 bool opt_help = false; 00036 bool opt_displayRendering = false; 00037 Options::IntByInt opt_resolution = { 1000, 1000 }; 00038 Vector3 opt_eyepoint = Vector3(0, 0, 10); 00039 Vector3 opt_lookat = Vector3(0, 0, 0); 00040 double opt_fieldOfView = 0.785398; 00041 bool opt_generatePhotonMap = false; 00042 bool opt_showOnlyPhotonMap = false; 00043 int opt_causticPhotons = 1000000; 00044 int opt_photonsInEstimate = 300; 00045 bool opt_preview = false; 00046 bool opt_previewOnly = false; 00047 string opt_outputFileName = ""; 00048 bool opt_fullScreen = false; 00049 Options::IntByInt opt_previewResolution = { 1000, 1000 }; 00050 ColorRGBA opt_backgroundColor = ColorRGBA(Color::black, 0); 00051 bool opt_showLightSources = false; 00052 bool opt_headLight = true; 00053 int opt_maxLoaderThreads = 8; 00054 int opt_maxLoaderThreadIdle = 10; 00055 int opt_frameRate = 40; 00056 Options::IntByInt opt_subdivision = { 25, 25 }; 00057 } 00058 } 00059 00060