Show
Ignore:
Timestamp:
02/27/08 12:43:58 (7 years ago)
Author:
robert
Message:

From Paul Martz, fixed get/set methods API

Files:
1 modified

Legend:

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

    r7754 r7889  
    265265    osg::ref_ptr<osg::OcclusionQueryNode> oqn = new osg::OcclusionQueryNode; 
    266266 
    267     osg::StateSet* ss( NULL ); 
    268     osg::StateSet* ssDebug( NULL ); 
    269     oqn->getQueryStateSets( ss, ssDebug ); 
    270     _state = ss; 
    271     _debugState = ssDebug; 
     267    _state = oqn->getQueryStateSet(); 
     268    _debugState = oqn->getDebugStateSet(); 
    272269} 
    273270 
     
    355352                // Set all OQNs to use the same query StateSets (instead of multiple copies 
    356353                //   of the same StateSet) for efficiency. 
    357                 oqn->setQueryStateSets( _state.get(), _debugState.get() ); 
     354                oqn->setQueryStateSet( _state.get() ); 
     355                oqn->setDebugStateSet( _debugState.get() ); 
    358356            } 
    359357        }