mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
Added support for configuration file
- BASE_PATH is set using the openspace.cfg file. The binary will look
upwards in the directory hierarchy until it is found.
- All other paths is defined in the configurationfile. Paths may be
absolute or relative using the ${BASE_PATH} token
- Moved SGCT configuration files to its own folder
- Updated tests to support new configuration loading
- TODO: Make the loading of configuration easier for the programmer.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <openspace/interaction/interactionhandler.h>
|
||||
#include <openspace/rendering/renderengine.h>
|
||||
#include <ghoul/misc/configurationmanager.h>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
|
||||
namespace openspace {
|
||||
|
||||
@@ -35,14 +36,17 @@ class ScriptEngine;
|
||||
|
||||
class OpenSpaceEngine {
|
||||
public:
|
||||
static void create(int argc, char** argv, int& newArgc, char**& newArgv);
|
||||
static void create(int argc, char** argv, std::vector<std::string>& sgctArguments);
|
||||
static void destroy();
|
||||
static OpenSpaceEngine& ref();
|
||||
|
||||
static bool isInitialized();
|
||||
bool initialize();
|
||||
static bool registerFilePaths();
|
||||
|
||||
|
||||
static bool registerPathsFromDictionary(const ghoul::Dictionary& dictionary);
|
||||
static bool registerBasePathFromConfigurationFile(const std::string& filename);
|
||||
static bool findConfiguration(std::string& filename) ;
|
||||
|
||||
ghoul::ConfigurationManager& configurationManager();
|
||||
InteractionHandler& interactionHandler();
|
||||
RenderEngine& renderEngine();
|
||||
|
||||
Reference in New Issue
Block a user