Changeset 2525 for GTP


Ignore:
Timestamp:
07/03/07 22:18:15 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/src/SpaceStation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/SpaceStation/include/SpaceStation.h

    r2520 r2525  
    2929 
    3030bool highQuality = true; 
     31bool chc = false; 
    3132 
    3233Scene* NXScene = 0; 
     
    483484        void chooseSceneManager() 
    484485        { 
    485                 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 
    486                 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 
     486                if(chc) 
     487                        mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 
     488                else 
     489                        mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 
    487490        } 
    488491 
     
    492495 
    493496                std::string occlusion_cfg("OcclusionCulling.cfg"); 
     497                if(chc) 
    494498                mSceneMgr->setWorldGeometry(occlusion_cfg); 
    495499                 
  • GTP/trunk/App/Demos/Illum/Ogre/src/SpaceStation/src/SpaceStation.cpp

    r2472 r2525  
    4545        if(StringUtil::match(args, "low")) 
    4646                highQuality = false; 
     47        if(StringUtil::match(args, "chc")) 
     48                chc = true; 
    4749#endif 
    4850    // Create application object 
Note: See TracChangeset for help on using the changeset viewer.