Show
Ignore:
Timestamp:
06/13/07 17:32:17 (8 years ago)
Author:
robert
Message:

Added passing of arugments into viewer constructor

Files:
1 modified

Legend:

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

    r6941 r6962  
    199199 
    200200    // construct the viewer. 
    201     osgViewer::Viewer viewer; 
     201    osgViewer::Viewer viewer(arguments); 
    202202 
    203203    // add the state manipulator 
     
    290290    while (arguments.read("--ortho") || arguments.read("--orthographic")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; 
    291291    while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY; 
    292  
    293     unsigned int screenNum = 0;     
    294     while (arguments.read("--screen", screenNum) || arguments.read("-s", screenNum)) viewer.setUpViewOnSingleScreen(screenNum); 
    295292 
    296293    std::string pathfile;