Renamed osgViewer::Config osgViewer::ViewConfig and moved it's declaration into include/osgViewer.

This commit is contained in:
Robert Osfield
2013-05-16 10:11:06 +00:00
parent e3ed763c15
commit 3b6c2b636a
19 changed files with 113 additions and 3892 deletions

View File

@@ -39,11 +39,11 @@ int main( int argc, char **argv )
osg::ArgumentParser arguments(&argc,argv);
osg::ref_ptr<osgViewer::Config> config;
osg::ref_ptr<osgViewer::ViewConfig> config;
std::string configFile;
if (arguments.read("-c",configFile))
{
config = osgDB::readFile<osgViewer::Config>(configFile);
config = osgDB::readFile<osgViewer::ViewConfig>(configFile);
}
if (!config)
{
@@ -74,7 +74,7 @@ int main( int argc, char **argv )
if (config.valid())
{
config->configure(viewer);
viewer.apply(config.get());
osgDB::writeObjectFile(*config,"myconfig.osgx");
}