Changeset 343 for trunk/VUT/Ogre/src
- Timestamp:
- 10/20/05 18:49:11 (19 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreOctreeHierarchyInterface.cpp
r174 r343 106 106 } 107 107 #endif 108 108 109 } 109 110 //----------------------------------------------------------------------- -
trunk/VUT/Ogre/src/OgreVisibilityOctreeSceneManager.cpp
r259 r343 237 237 void VisibilityOctreeSceneManager::_renderVisibleObjects() 238 238 { 239 240 //InitVisibilityCulling(mCameraInProgress); 241 //mVisibilityManager->ApplyVisibilityCulling(); 242 243 if(1){ 239 244 InitDepthPass(); // create material for depth pass 240 245 InitItemBufferPass(); // create material for item buffer pass … … 340 345 // reset ambient light 341 346 setAmbientLight(savedAmbient); 342 347 } 343 348 getRenderQueue()->clear(); // finally clear render queue 344 349 OGRE_DELETE(mRenderQueue); // HACK: should be cleared before... 345 350 //WriteLog(); // write out stats 351 346 352 } 347 353 … … 428 434 return true; 429 435 } 436 if (key == "UseArbQueries") 437 { 438 bool useArbQueries = (*static_cast<const bool *>(val)); 439 440 if (useArbQueries) 441 { 442 mHierarchyInterface->DeleteQueries(); 443 mDestRenderSystem->setConfigOption("ArbQueries", "Yes"); 444 } 445 else 446 { 447 mHierarchyInterface->DeleteQueries(); 448 mDestRenderSystem->setConfigOption("ArbQueries", "No"); 449 } 450 } 451 430 452 return VisibilityOptionsManager(mVisibilityManager, mHierarchyInterface). 431 453 setOption(key, val) || OctreeSceneManager::setOption(key, val); -
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r259 r343 434 434 } 435 435 436 if (key == "UseArbQueries") 437 { 438 bool useArbQueries = (*static_cast<const bool *>(val)); 439 440 if (useArbQueries) 441 { 442 mHierarchyInterface->DeleteQueries(); 443 mDestRenderSystem->setConfigOption("ArbQueries", "Yes"); 444 } 445 else 446 { 447 mHierarchyInterface->DeleteQueries(); 448 mDestRenderSystem->setConfigOption("ArbQueries", "No"); 449 } 450 } 436 451 return VisibilityOptionsManager(mVisibilityManager, mHierarchyInterface). 437 452 setOption(key, val) || TerrainSceneManager::setOption(key, val);
Note: See TracChangeset
for help on using the changeset viewer.