Show
Ignore:
Timestamp:
02/23/11 12:28:43 (4 years ago)
Author:
robert
Message:

Added -n option

Files:
1 modified

Legend:

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

    r12181 r12182  
    980980    arguments.getApplicationUsage()->addCommandLineOption("--cpu-tf","Apply the transfer function on the CPU."); 
    981981    arguments.getApplicationUsage()->addCommandLineOption("--mip","Use Maximum Intensity Projection (MIP) filtering."); 
     982    arguments.getApplicationUsage()->addCommandLineOption("--isosurface","Use Iso surface render."); 
     983    arguments.getApplicationUsage()->addCommandLineOption("--light","Use normals computed on the GPU to render a lit volume."); 
     984    arguments.getApplicationUsage()->addCommandLineOption("-n","Use normals computed on the GPU to render a lit volume."); 
    982985    arguments.getApplicationUsage()->addCommandLineOption("--xSize <size>","Relative width of rendered brick."); 
    983986    arguments.getApplicationUsage()->addCommandLineOption("--ySize <size>","Relative length of rendered brick."); 
     
    10811084    while(arguments.read("--mip")) shadingModel =  MaximumIntensityProjection; 
    10821085 
    1083     while (arguments.read("--isosurface")) shadingModel = Isosurface; 
    1084  
    1085     while (arguments.read("--light")) shadingModel = Light; 
     1086    while (arguments.read("--isosurface") || arguments.read("--iso-surface")) shadingModel = Isosurface; 
     1087 
     1088    while (arguments.read("--light") || arguments.read("-n")) shadingModel = Light; 
    10861089 
    10871090    float xSize=0.0f, ySize=0.0f, zSize=0.0f;