Show
Ignore:
Timestamp:
05/15/07 16:53:58 (7 years ago)
Author:
robert
Message:

Added -n/--no-overlay option

Files:
1 modified

Legend:

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

    r6669 r6673  
    251251        } 
    252252    } 
     253 
     254    bool useOverlay = true; 
     255    while (arguments.read("--no-overlay") || arguments.read("-n")) useOverlay = false; 
    253256     
    254257    osgSim::OverlayNode::OverlayTechnique technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; 
     
    258261     
    259262 
     263 
    260264    // if user request help write it out to cout. 
    261265    if (arguments.read("-h") || arguments.read("--help")) 
     
    289293    { 
    290294 
    291         bool insertOverlayNode = true; 
    292295        osg::ref_ptr<osgSim::OverlayNode> overlayNode; 
    293         if (insertOverlayNode) 
    294         { 
    295          
     296        if (useOverlay) 
     297        { 
    296298            overlayNode = new osgSim::OverlayNode(technique); 
    297299