3 using namespace libconfig;
6 : m_hasResolution(false)
7 , m_isFullScreen(false)
8 , m_resolution(1024,768)
9 , m_windowTitle(
"Vis2 - Number5")
11 , m_pickerMaxDistance(80U)
12 , m_sceneName(
"Dynamic Plane")
13 , m_threadpoolSize(glm::max(2U, thread::hardware_concurrency()))
14 , m_skinnningMultiThreaded(true)
15 , m_pickerMultiThreaded(true)
21 cfg.readFile(
"Number5.cfg");
23 catch(
const FileIOException &fioex)
28 catch(
const ParseException &pex)
30 cerr <<
"ERROR: Could not parse config-file (" << pex.getFile() <<
":" << pex.getLine() <<
")" <<
" - " << pex.getError() << endl;
35 const Setting& root = cfg.getRoot();
39 const Setting &window = root[
"window"];
51 catch(
const SettingNotFoundException &nfex)
58 const Setting &window = root[
"picker"];
61 if (window.lookupValue(
"mode", mode))
70 catch(
const SettingNotFoundException &nfex)
77 const Setting &window = root[
"skinning"];
81 catch(
const SettingNotFoundException &nfex)
88 const Setting &window = root[
"task-scheduler"];
92 catch(
const SettingNotFoundException &nfex)
101 catch(
const SettingNotFoundException &nfex)
bool m_skinnningMultiThreaded
PickerUpdateMode m_pickerMode
bool m_pickerMultiThreaded