Show
Ignore:
Timestamp:
10/02/07 23:24:23 (7 years ago)
Author:
robert
Message:

Updated to reflect new CompositeViewer? threading models

Files:
1 modified

Legend:

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

    r7516 r7536  
    138138 
    139139    // construct the viewer. 
    140     osgViewer::CompositeViewer viewer; 
     140    osgViewer::CompositeViewer viewer(arguments); 
    141141     
    142142     
     
    286286     
    287287    while (arguments.read("-s")) { viewer.setThreadingModel(osgViewer::CompositeViewer::SingleThreaded); } 
    288     while (arguments.read("-g")) { viewer.setThreadingModel(osgViewer::CompositeViewer::ThreadPerContext); } 
    289     while (arguments.read("-c")) { viewer.setThreadingModel(osgViewer::CompositeViewer::ThreadPerCamera); } 
     288    while (arguments.read("-g")) { viewer.setThreadingModel(osgViewer::CompositeViewer::CullDrawThreadPerContext); } 
     289    while (arguments.read("-c")) { viewer.setThreadingModel(osgViewer::CompositeViewer::CullThreadPerCameraDrawThreadPerContext); } 
    290290  
    291291     // run the viewer's main frame loop