Show
Ignore:
Timestamp:
11/17/07 12:50:13 (6 years ago)
Author:
robert
Message:

From Colin Dunlop, add --devices support.

Files:
1 modified

Legend:

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

    r7585 r7594  
    348348    arguments.getApplicationUsage()->addCommandLineOption("--interactive","Use camera manipulator to allow movement around movie."); 
    349349    arguments.getApplicationUsage()->addCommandLineOption("--flip","Flip the movie so top becomes bottom."); 
     350    arguments.getApplicationUsage()->addCommandLineOption("--devices","Print the Video input capability via QuickTime and exit."); 
    350351     
    351352    bool useTextureRectangle = true; 
     
    358359    { 
    359360        arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); 
     361        return 1; 
     362    } 
     363 
     364    // if user requests devices video capability. 
     365    if (arguments.read("-devices") || arguments.read("--devices")) 
     366    { 
     367        // Force load QuickTime plugin, probe video capability, exit 
     368        osgDB::readImageFile("devices.live"); 
    360369        return 1; 
    361370    }