From Jean-Sebastien Guay and Robert Osfiled, osgViewer::ScreenCaptureHandler for

taking screenshots
This commit is contained in:
Robert Osfield
2008-07-17 16:12:39 +00:00
parent 198ae2ba56
commit 46796978fd
4 changed files with 808 additions and 0 deletions

View File

@@ -109,6 +109,9 @@ int main(int argc, char** argv)
// add the LOD Scale handler
viewer.addEventHandler(new osgViewer::LODScaleHandler);
// add the LOD Scale handler
viewer.addEventHandler(new osgViewer::ScreenCaptureHandler);
// load the data
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments);
if (!loadedModel)