Ignore:
Timestamp:
03/23/07 18:43:12 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r2282 r2290  
    1717        "Coherent Hierarchical Culling", 
    1818        "View Frustum Culling",  
     19        "Random Update Culling",  
    1920        "Stop and Wait Culling", 
    2021        "Standard Rendering" 
     
    2526{ 
    2627        "CHC", 
    27         "VFC",  
     28        "VFC", 
     29        "RUC", 
    2830        "SWC", 
    2931        "DEF" 
     
    288290        mTimeFrameEnded = mTimeFrameStarted = mTimer->getMilliseconds(); 
    289291         
    290         if (0 && (mSceneMgr->getSceneNode("robot Entity1Node")-> 
    291                 getAttachedObject(0)->getMovableType() == "Entity")) 
    292                 Ogre::LogManager::getSingleton().logMessage("found entity"); 
    293  
    294292        // init view cell parameters 
    295         //mSceneMgr->setOption("UseViewCells", &mUseViewCells); 
    296293        mSceneMgr->setOption("UseVisibilityFilter", &mUseVisibilityFilter); 
    297294 
     
    487484 
    488485                // important for visualization => draw octree bounding boxes 
    489                 if (0) 
    490                         mSceneMgr->setOption("ShowOctree", &mShowVisualization); 
     486                if (0) mSceneMgr->setOption("ShowOctree", &mShowVisualization); 
    491487                 
    492488                /////////////// 
     
    600596                                                                                                         itemBufferMode); 
    601597 
    602         //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false); 
    603  
    604598        visManager->SetQueryManager(mQueryManager); 
    605599 
     
    12551249void TerrainFrameListener::toggleShowViewCells() 
    12561250{ 
    1257         if (0) // tmp matt 
    1258         { 
    1259                 mShowViewCells = !mShowViewCells; 
    1260                 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 
    1261         } 
    1262         else  
    1263         { 
    1264                 unsigned int numObjects; 
    1265                 mSceneMgr->getOption("VisibleObjects", &numObjects); 
    1266         } 
     1251        mShowViewCells = !mShowViewCells; 
     1252        mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 
    12671253} 
    12681254//----------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.