Browse files

Changed the -w and -h options to --width and --height respectively.

  • Loading branch information...
1 parent 51b4231 commit 8bb652674d26f94cc8b45ba11f890140198ef2aa @osg-training-guest osg-training-guest committed Dec 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 examples/osgframerenderer/osgframerenderer.cpp
@@ -73,8 +73,8 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->addCommandLineOption("-p <filename>","Use specificied camera path file to control camera position.");
arguments.getApplicationUsage()->addCommandLineOption("--offscreen","Use an pbuffer to render the images offscreen.");
arguments.getApplicationUsage()->addCommandLineOption("--screen","Use an window to render the images.");
- arguments.getApplicationUsage()->addCommandLineOption("-w <width>","Window/output image width");
- arguments.getApplicationUsage()->addCommandLineOption("-h <height>","Window/output image height");
+ arguments.getApplicationUsage()->addCommandLineOption("--width <width>","Window/output image width");
+ arguments.getApplicationUsage()->addCommandLineOption("--height <height>","Window/output image height");
arguments.getApplicationUsage()->addCommandLineOption("--ms <s>","Number of multi-samples to use when rendering, an enable a single sample buffer.");
arguments.getApplicationUsage()->addCommandLineOption("--samples <s>","Number of multi-samples to use when rendering.");
arguments.getApplicationUsage()->addCommandLineOption("--sampleBuffers <sb>","Number of sample buffers to use when rendering.");
@@ -191,10 +191,10 @@ int main( int argc, char **argv )
if ("--screen")) fc->setOffscreen(false);
unsigned int width = 1024;
- if ("-w",width)) fc->setWidth(width);
+ if ("--width",width)) fc->setWidth(width);
unsigned int height = 512;
- if ("-h",height)) fc->setHeight(height);
+ if ("--height",height)) fc->setHeight(height);
unsigned int samples = 0;
if ("--samples",samples)) fc->setSamples(samples);

0 comments on commit 8bb6526

Please sign in to comment.