Show
Ignore:
Timestamp:
09/29/10 14:38:56 (4 years ago)
Author:
robert
Message:

Added command line option for writing out the scene graph to file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp

    r11250 r11800  
    699699    } 
    700700 
    701 #if 0 
    702     osgDB::writeNodeFile(*viewer.getSceneData(),"text.osg"); 
    703 #endif 
     701    std::string filename; 
     702    if (arguments.read("-o",filename)) 
     703    { 
     704        osgDB::writeNodeFile(*viewer.getSceneData(),filename); 
     705        return 0; 
     706    } 
    704707 
    705708    viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) ); 
     
    717720        } 
    718721    } 
     722 
     723    return 0; 
    719724} 
    720725