Show
Ignore:
Timestamp:
05/14/07 22:23:10 (8 years ago)
Author:
robert
Message:

Set up new view dependent overlay technique control methods

Files:
1 modified

Legend:

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

    r6665 r6669  
    251251        } 
    252252    } 
     253     
     254    osgSim::OverlayNode::OverlayTechnique technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; 
     255    while (arguments.read("--object")) technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; 
     256    while (arguments.read("--ortho") || arguments.read("--orthographic")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; 
     257    while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY; 
     258     
    253259 
    254260    // if user request help write it out to cout. 
     
    288294        { 
    289295         
    290             overlayNode = new osgSim::OverlayNode; 
     296            overlayNode = new osgSim::OverlayNode(technique); 
    291297             
    292298            // insert the OverlayNode between the coordinate system node and its children.