Further steps towards reading coniguration files.
This commit is contained in:
@@ -37,6 +37,13 @@ CompositeViewer::CompositeViewer(osg::ArgumentParser& arguments)
|
||||
{
|
||||
constructorInit();
|
||||
|
||||
std::string filename;
|
||||
bool readConfig = false;
|
||||
while (arguments.read("-c",filename))
|
||||
{
|
||||
readConfig = readConfiguration(filename) || readConfig;
|
||||
}
|
||||
|
||||
while (arguments.read("--SingleThreaded")) setThreadingModel(SingleThreaded);
|
||||
while (arguments.read("--ThreadPerContext")) setThreadingModel(ThreadPerContext);
|
||||
|
||||
@@ -109,6 +116,11 @@ CompositeViewer::~CompositeViewer()
|
||||
osg::notify(osg::INFO)<<"finished CompositeViewer::~CompsiteViewer()"<<std::endl;
|
||||
}
|
||||
|
||||
bool CompositeViewer::readConfiguration(const std::string& filename)
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"CompositeViewer::readConfiguration("<<filename<<")"<<std::endl;
|
||||
}
|
||||
|
||||
|
||||
void CompositeViewer::addView(osgViewer::View* view)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user