00001 // configfile.h 00002 // 00003 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _CONFIGFILE_H_ 00011 #define _CONFIGFILE_H_ 00012 00013 #include <string> 00014 #include <vector> 00015 00016 struct CelestiaConfig 00017 { 00018 std::string starDatabaseFile; 00019 std::string starNamesFile; 00020 std::vector<std::string> solarSystemFiles; 00021 std::vector<std::string> starCatalogFiles; 00022 std::vector<std::string> extrasDirs; 00023 std::string deepSkyCatalog; 00024 std::vector<std::string> labelledStars; 00025 std::string asterismsFile; 00026 std::string boundariesFile; 00027 float faintestVisible; 00028 std::string favoritesFile; 00029 std::string initScriptFile; 00030 std::string demoScriptFile; 00031 std::string destinationsFile; 00032 std::string mainFont; 00033 std::string labelFont; 00034 std::string titleFont; 00035 std::string logoTextureFile; 00036 std::string cursor; 00037 std::vector<std::string> ignoreGLExtensions; 00038 float rotateAcceleration; 00039 float mouseRotationSensitivity; 00040 std::string scriptScreenshotDirectory; 00041 std::string scriptSystemAccessPolicy; 00042 00043 std::string HDCrossIndexFile; 00044 std::string SAOCrossIndexFile; 00045 std::string GlieseCrossIndexFile; 00046 00047 // Renderer detail options 00048 unsigned int shadowTextureSize; 00049 unsigned int eclipseTextureSize; 00050 unsigned int ringSystemSections; 00051 unsigned int orbitPathSamplePoints; 00052 00053 unsigned int aaSamples; 00054 00055 bool hdr; 00056 }; 00057 00058 00059 CelestiaConfig* ReadCelestiaConfig(std::string filename, CelestiaConfig* config = NULL); 00060 00061 #endif // _CONFIGFILE_H_
1.4.1