Show
Ignore:
Timestamp:
05/20/03 10:57:02 (12 years ago)
Author:
robert
Message:

Removed redundent write_usage function.

Files:
1 modified

Legend:

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

    r1844 r1954  
    2121 
    2222#include <osgUtil/Optimizer> 
    23  
    24 void write_usage(std::ostream& out,const std::string& name) 
    25 { 
    26     out << std::endl; 
    27     out <<"usage:"<< std::endl; 
    28     out <<"    "<<name<<" [options] infile1 [infile2 ...]"<< std::endl; 
    29     out << std::endl; 
    30     out <<"options:"<< std::endl; 
    31     out <<"    -l libraryName      - load plugin of name libraryName"<< std::endl; 
    32     out <<"                          i.e. -l osgdb_pfb"<< std::endl; 
    33     out <<"                          Useful for loading reader/writers which can load"<< std::endl; 
    34     out <<"                          other file formats in addition to its extension."<< std::endl; 
    35     out <<"    -e extensionName    - load reader/wrter plugin for file extension"<< std::endl; 
    36     out <<"                          i.e. -e pfb"<< std::endl; 
    37     out <<"                          Useful short hand for specifying full library name as"<< std::endl; 
    38     out <<"                          done with -l above, as it automatically expands to"<< std::endl; 
    39     out <<"                          the full library name appropriate for each platform."<< std::endl; 
    40     out <<std::endl; 
    41     out <<"    -stereo             - switch on stereo rendering, using the default of,"<< std::endl; 
    42     out <<"                          ANAGLYPHIC or the value set in the OSG_STEREO_MODE "<< std::endl; 
    43     out <<"                          environmental variable. See doc/stereo.html for "<< std::endl; 
    44     out <<"                          further details on setting up accurate stereo "<< std::endl; 
    45     out <<"                          for your system. "<< std::endl; 
    46     out <<"    -stereo ANAGLYPHIC  - switch on anaglyphic(red/cyan) stereo rendering."<< std::endl; 
    47     out <<"    -stereo QUAD_BUFFER - switch on quad buffered stereo rendering."<< std::endl; 
    48     out <<std::endl; 
    49     out <<"    -stencil            - use a visual with stencil buffer enabled, this "<< std::endl; 
    50     out <<"                          also allows the depth complexity statistics mode"<< std::endl; 
    51     out <<"                          to be used (press 'p' three times to cycle to it)."<< std::endl; 
    52     out << std::endl; 
    53 } 
    5423 
    5524 
     
    172141    if (!loadedModel) 
    173142    { 
    174         write_usage(osg::notify(osg::NOTICE),argv[0]); 
    175143        return 1; 
    176144    }