- Timestamp:
- 08/30/06 15:10:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp
r1296 r1300 41 41 .addOpt("","savesceneto", ARGUMENT_REQUIRED) 42 42 .addOpt("f","faststart", ARGUMENT_NONE) 43 .addOpt("b","burnin", ARGUMENT_NONE); 43 .addOpt("b","burnin", ARGUMENT_NONE) 44 .addOpt("v","viewcells", ARGUMENT_OPTIONAL); 44 45 45 46 … … 135 136 } 136 137 138 if (cmdparser.getOpt("v",tmp)) 139 { 140 if (tmp == "0") 141 options.mViewCells = KdTreeAppListener::VCM_OFF; 142 else if (tmp == "" || tmp == "1") 143 options.mViewCells = KdTreeAppListener::VCM_ON; 144 else if (tmp == "2") 145 options.mViewCells = KdTreeAppListener::VCM_FILTER; 146 else 147 { 148 MessageBox(NULL, ("Invalid argument for option --viewcells: " + tmp).c_str(), "Error", MB_OK | MB_ICONERROR ); 149 return -1; 150 } 151 152 } 137 153 } 138 154 catch (std::string s) … … 328 344 mTopCam->setPosition(Vector3(1232, 3990, -1477)); 329 345 330 // try loading view cells if specified and if scene manager supports it331 if (!mViewCells.empty())332 mSceneMgr->setOption("LoadViewCells", mViewCells.c_str());346 //// try loading view cells if specified and if scene manager supports it 347 //if (!mViewCells.empty()) 348 // mSceneMgr->setOption("LoadViewCells", mViewCells.c_str()); 333 349 334 350 // sky box
Note: See TracChangeset
for help on using the changeset viewer.