- Timestamp:
- 03/21/07 17:34:04 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp
r6301 r6385 171 171 } 172 172 173 void setDomeFaces(osgViewer::Viewer& viewer, osg::ArgumentParser& /*arguments*/)173 void setDomeFaces(osgViewer::Viewer& viewer, osg::ArgumentParser& arguments) 174 174 { 175 175 … … 183 183 unsigned int width, height; 184 184 wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height); 185 186 while (arguments.read("--width",width)) {} 187 while (arguments.read("--height",height)) {} 185 188 186 189 osg::ref_ptr<osg::GraphicsContext::Traits> traits = new osg::GraphicsContext::Traits; … … 436 439 wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height); 437 440 441 while (arguments.read("--width",width)) {} 442 while (arguments.read("--height",height)) {} 443 438 444 osg::ref_ptr<osg::GraphicsContext::Traits> traits = new osg::GraphicsContext::Traits; 439 445 traits->x = 0; … … 444 450 traits->doubleBuffer = true; 445 451 traits->sharedContext = 0; 452 453 446 454 447 455 osg::ref_ptr<osg::GraphicsContext> gc = osg::GraphicsContext::createGraphicsContext(traits.get()); … … 657 665 { 658 666 osg::Node* distortionNode = createDistortionSubgraph( osgDB::readNodeFiles(arguments), viewer.getCamera()->getClearColor()); 667 viewer.setSceneData( distortionNode ); 659 668 } 660 669
