Show
Ignore:
Timestamp:
01/24/12 18:21:14 (3 years ago)
Author:
robert
Message:

From Paul Martz, Added ViewerBase::s/getEndBarrierOperation(..) method to allow user control of how viewers are sync'd.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgViewer/ViewerBase

    r12294 r12914  
    107107        /** Get the end barrier position.*/ 
    108108        BarrierPosition getEndBarrierPosition() const { return _endBarrierPosition; } 
     109         
     110        /** Set the end barrier operation. \c op may be one of GL_FLUSH, GL_FINISH, 
     111         * or NO_OPERATION. NO_OPERATION is the default. Per BarrierOperation::operator()(), 
     112         * a glFlush() command, glFinish() command, or no additional OpenGL command will be 
     113         * issued before entering the end barrier. */ 
     114        void setEndBarrierOperation(const osg::BarrierOperation::PreBlockOp& op) { _endBarrierOperation = op; } 
     115         
     116        /** Get the end barrier operation. */ 
     117        osg::BarrierOperation::PreBlockOp getEndBarrierOperation() const { return _endBarrierOperation; } 
    109118 
    110119 
     
    310319 
    311320        BarrierPosition                                     _endBarrierPosition; 
     321        osg::BarrierOperation::PreBlockOp                   _endBarrierOperation; 
    312322 
    313323        osg::ref_ptr<osg::BarrierOperation>                 _startRenderingBarrier;