Changeset 29 for trunk/VUT/OcclusionCullingSceneManager/src
- Timestamp:
- 03/24/05 12:15:20 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManager.cpp
r28 r29 15 15 OcclusionCullingSceneManager::OcclusionCullingSceneManager(): 16 16 mFrameId(1), mDistanceQueue(NULL), mVisibilityThreshold(0), mCurrentTestIdx(0), 17 mQueryMode(MODE_RENDER), mNumSceneNodes(0), m AlgorithmType(RENDER_COHERENT)17 mQueryMode(MODE_RENDER), mNumSceneNodes(0), mCurrentAlgorithm(RENDER_COHERENT) 18 18 { 19 19 mHalfBoundingBox[0] = mHalfBoundingBox[1] = 0; … … 44 44 //renderZPass(); 45 45 46 switch(m AlgorithmType)46 switch(mCurrentAlgorithm) 47 47 { 48 48 case RENDER_CULL_FRUSTUM: … … 346 346 } 347 347 //----------------------------------------------------------------------- 348 void OcclusionCullingSceneManager::setAlgorithmType(int type) 349 { 350 mAlgorithmType = type; 351 } 352 //----------------------------------------------------------------------- 353 int OcclusionCullingSceneManager::getAlgorithmType() 354 { 355 return mAlgorithmType; 348 bool OcclusionCullingSceneManager::setOption( const String & key, const void * val ) 349 { 350 if ( key == "Algorithm" ) 351 { 352 mCurrentAlgorithm = * static_cast < const int * > ( val ); 353 return true; 354 } 355 356 return SceneManager::setOption( key, val ); 357 } 358 //----------------------------------------------------------------------- 359 bool OcclusionCullingSceneManager::getOption( const String & key, void *val ) 360 { 361 if ( key == "Algorithm" ) 362 { 363 * static_cast < int * > ( val ) = mCurrentAlgorithm; 364 return true; 365 } 366 367 return SceneManager::getOption( key, val ); 368 } 369 //----------------------------------------------------------------------- 370 bool OcclusionCullingSceneManager::getOptionValues( const String & key, StringVector &refValueList ) 371 { 372 return SceneManager::getOptionValues( key, refValueList ); 373 } 374 //----------------------------------------------------------------------- 375 bool OcclusionCullingSceneManager::getOptionKeys( StringVector & refKeys ) 376 { 377 SceneManager::getOptionKeys( refKeys ); 378 refKeys.push_back( "Algorithm" ); 379 380 return true; 356 381 } 357 382 }
Note: See TracChangeset
for help on using the changeset viewer.