celestia/src/celestia/configfile.h

95 lines
2.4 KiB
C
Raw Normal View History

// configfile.h
//
// Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#ifndef _CONFIGFILE_H_
#define _CONFIGFILE_H_
#include <string>
#include <vector>
#include <celengine/parser.h>
#include <celengine/star.h>
2019-08-15 13:21:22 -06:00
#include <celcompat/filesystem.h>
class CelestiaConfig
{
public:
2019-08-15 13:21:22 -06:00
fs::path starDatabaseFile;
fs::path starNamesFile;
std::vector<fs::path> solarSystemFiles;
std::vector<fs::path> starCatalogFiles;
std::vector<fs::path> dsoCatalogFiles;
std::vector<fs::path> extrasDirs;
std::vector<fs::path> skipExtras;
2019-08-15 13:21:22 -06:00
fs::path deepSkyCatalog;
fs::path asterismsFile;
fs::path boundariesFile;
float faintestVisible;
2019-08-15 13:21:22 -06:00
fs::path favoritesFile;
fs::path initScriptFile;
fs::path demoScriptFile;
fs::path destinationsFile;
std::string mainFont;
std::string labelFont;
std::string titleFont;
2019-08-15 13:21:22 -06:00
fs::path logoTextureFile;
2003-12-04 11:35:26 -07:00
std::string cursor;
std::vector<std::string> ignoreGLExtensions;
float rotateAcceleration;
float mouseRotationSensitivity;
bool reverseMouseWheel;
double orbitWindowEnd;
double orbitPeriodsShown;
double linearFadeFraction;
2019-08-15 13:21:22 -06:00
fs::path scriptScreenshotDirectory;
2004-06-10 07:50:29 -06:00
std::string scriptSystemAccessPolicy;
#ifdef CELX
2019-08-15 13:21:22 -06:00
fs::path luaHook;
Hash* configParams;
#endif
2019-08-15 13:21:22 -06:00
fs::path HDCrossIndexFile;
fs::path SAOCrossIndexFile;
fs::path GlieseCrossIndexFile;
StarDetails::StarTextureSet starTextures;
// Renderer detail options
unsigned int shadowTextureSize;
unsigned int eclipseTextureSize;
unsigned int orbitPathSamplePoints;
unsigned int aaSamples;
bool hdr;
unsigned int consoleLogRows;
Hash* params;
float getFloatValue(const std::string& name);
const std::string getStringValue(const std::string& name);
float SolarSystemMaxDistance;
unsigned ShadowMapSize;
std::string projectionMode;
std::string viewportEffect;
std::string warpMeshFile;
2021-09-27 19:40:38 -06:00
std::string measurementSystem;
std::string temperatureScale;
2018-12-24 13:14:22 -07:00
std::string x264EncoderOptions;
std::string ffvhEncoderOptions;
};
2019-08-15 13:21:22 -06:00
CelestiaConfig* ReadCelestiaConfig(const fs::path& filename, CelestiaConfig* config = nullptr);
#endif // _CONFIGFILE_H_