Show
Ignore:
Timestamp:
02/19/07 17:59:52 (8 years ago)
Author:
robert
Message:

Added command line arguments descriptions

Files:
1 modified

Legend:

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

    r6237 r6238  
    470470    arguments.getApplicationUsage()->addCommandLineOption("--positionalLight", "Use a positional light."); 
    471471    arguments.getApplicationUsage()->addCommandLineOption("--directionalLight", "Use a direction light."); 
    472     arguments.getApplicationUsage()->addCommandLineOption("--addOccluderToScene", "Add the occluders geometry."); 
    473472    arguments.getApplicationUsage()->addCommandLineOption("--noUpdate", "Disable the updating the of light source."); 
    474473    arguments.getApplicationUsage()->addCommandLineOption("--base", "Add a base geometry to test shadows."); 
    475     arguments.getApplicationUsage()->addCommandLineOption("--noShadow", "Disable the shadows."); 
     474    arguments.getApplicationUsage()->addCommandLineOption("--sv", "Select ShadowVolume implementation."); 
     475    arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 
     476    arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 
     477    arguments.getApplicationUsage()->addCommandLineOption("--pssm", "Select ParallelSplitShadowMap implementation."); 
     478    arguments.getApplicationUsage()->addCommandLineOption("--1", "Use test model one."); 
     479    arguments.getApplicationUsage()->addCommandLineOption("--2", "Use test model two."); 
     480    arguments.getApplicationUsage()->addCommandLineOption("--3", "Use test model three."); 
    476481    arguments.getApplicationUsage()->addCommandLineOption("--two-sided", "Use two-sided stencil extension for shadow volumes."); 
    477482    arguments.getApplicationUsage()->addCommandLineOption("--two-pass", "Use two-pass stencil for shadow volumes."); 
    478483 
    479     // hint to tell viewer to request stencil buffer when setting up windows 
    480     osg::DisplaySettings::instance()->setMinimumNumStencilBits(8); 
    481484 
    482485    // construct the viewer. 
     
    577580    if (arguments.read("--sv")) 
    578581    { 
     582        // hint to tell viewer to request stencil buffer when setting up windows 
     583        osg::DisplaySettings::instance()->setMinimumNumStencilBits(8); 
     584 
    579585        osg::ref_ptr<osgShadow::ShadowVolume> sv = new osgShadow::ShadowVolume; 
    580586        sv->setDynamicShadowVolumes(updateLightPosition);