Show
Ignore:
Timestamp:
03/08/09 13:00:36 (5 years ago)
Author:
robert
Message:

Preliminary work on general purpose incremental compile support in osgViewer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/ViewerBase.cpp

    r9591 r9868  
    376376        if (!gc->isRealized()) 
    377377        { 
    378             osg::notify(osg::INFO)<<"ViewerBase::startThreading() : Realizng window "<<gc<<std::endl; 
     378            osg::notify(osg::INFO)<<"ViewerBase::startThreading() : Realizing window "<<gc<<std::endl; 
    379379            gc->realize(); 
    380380        } 
     
    550550        _updateOperations->remove(operation); 
    551551    }  
     552} 
     553 
     554void ViewerBase::setIncrementalCompileOperation(osgUtil::IncrementalCompileOperation* ico) 
     555{ 
     556    if (_incrementalCompileOperation == ico) return; 
     557     
     558    Contexts contexts; 
     559    getContexts(contexts, false); 
     560     
     561    if (_incrementalCompileOperation.valid()) _incrementalCompileOperation->removeContexts(contexts); 
     562 
     563    // assign new operation         
     564    _incrementalCompileOperation = ico; 
     565 
     566    if (_incrementalCompileOperation) _incrementalCompileOperation->assignContexts(contexts); 
    552567} 
    553568