Add OpenSpace version information

Make info text in WaveFrontGeometry more useful
This commit is contained in:
Alexander Bock
2015-02-23 17:14:01 +01:00
parent 561e18d748
commit 3bf577d04d
3 changed files with 12 additions and 9 deletions

View File

@@ -27,6 +27,7 @@
// sgct
#define SGCT_WINDOWS_INCLUDE
#include <sgct.h>
#include <openspace/version.h>
#include <openspace/engine/configurationmanager.h>
#include <openspace/engine/logfactory.h>
@@ -186,6 +187,10 @@ bool OpenSpaceEngine::create(int argc, char** argv,
// Initialize the requested logs from the configuration file
_engine->configureLogging();
LINFOC("OpenSpace Version", OPENSPACE_VERSION_MAJOR << "." <<
OPENSPACE_VERSION_MINOR << "." <<
OPENSPACE_VERSION_BUILD << " (" << OPENSPACE_VERSION_STRING << ")");
// Create directories that doesn't exist
auto tokens = FileSys.tokens();
for (const std::string& token : tokens) {