Changeset 1177 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 08/02/06 15:22:19 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h
r1170 r1177 215 215 String rm; 216 216 if (mSceneMgr->getOption("RenderMethod", &rm)) 217 value = " " + rm; 217 { 218 if (rm == "INT") 219 value = " Internal Frustum Culling"; 220 else if (rm == "VFC") 221 value = " View Frustum Culling"; 222 else if (rm == "SWC") 223 value = " Stop and Wait Culling"; 224 else if (rm == "CHC") 225 value = " Coherent Hierarchical Culling"; 226 else 227 value = na; 228 } 218 229 else 219 230 value = na; … … 278 289 279 290 // stuff for the kdtree overlay 291 static String sRM = "[SPACE] Algorithm: "; 292 static String sBM = "[X] Build Method: "; 280 293 static String sMaxDepth = "[1][2] Max Tree Depth: "; 281 294 static String sHL = "[3][4] Highlight: "; 282 295 static String sKT = "[5][6] KT: "; 283 296 static String sKI = "[7][8] KI: "; 284 static String sBM = "[Y] Build Method: ";285 static String sRM = "[X] Render Method: ";286 297 static String sMov = "[Q] Movement: "; 287 298 … … 291 302 292 303 //static String rmOptions[] = { "Recursive", "Stack", "StopAndWait", "CHC" }; 293 static String rmOptions[] = { "Recursive", "Stack" }; 304 static String rmOptions[] = { "INT", "VFC", "SWC", "CHC" }; 305 static String rmOptionCaptions[] = 306 { 307 "Internal Frustum Culling", 308 "View Frustum Culling", 309 "Stop and Wait Culling", 310 "Coherent Hierarchical Culling" 311 }; 294 312 static int rmOptionsSize = sizeof(rmOptions) / sizeof (String); 295 313 static int rmCurrent = 0; … … 400 418 } 401 419 402 if (mInputDevice->isKeyDown(KC_ Z) && mTimeUntilNextToggle <= 0)420 if (mInputDevice->isKeyDown(KC_X) && mTimeUntilNextToggle <= 0) 403 421 { 404 422 String bm; … … 417 435 } 418 436 419 if (mInputDevice->isKeyDown(KC_ X) && mTimeUntilNextToggle <= 0)437 if (mInputDevice->isKeyDown(KC_SPACE) && mTimeUntilNextToggle <= 0) 420 438 { 421 439 String rm; … … 424 442 rmCurrent = (rmCurrent + 1) % rmOptionsSize; 425 443 if (mSceneMgr->setOption("RenderMethod", &rmOptions[rmCurrent])) 426 OverlayManager::getSingleton().getOverlayElement("KdTree/RenderMethod")->setCaption(sRM + rmOption s[rmCurrent]);444 OverlayManager::getSingleton().getOverlayElement("KdTree/RenderMethod")->setCaption(sRM + rmOptionCaptions[rmCurrent]); 427 445 } 428 446 else -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/scripts/TestKdTree.vcproj
r1163 r1177 103 103 LinkIncremental="1" 104 104 AdditionalLibraryDirectories=""$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)"" 105 GenerateDebugInformation=" FALSE"105 GenerateDebugInformation="TRUE" 106 106 SubSystem="2" 107 107 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.