- Timestamp:
- 04/02/07 11:50:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2290 r2305 11 11 #include "TestCullingTerrainApplication.h" 12 12 #include <string> 13 13 14 14 15 //-- captions for overlays … … 521 522 setCurrentFrameInfo(evt.timeSinceLastFrame); 522 523 523 // HACK for demo: save new frame rates for different methods on the 524 // same walkthrough 524 // HACK for demo: save new frame rates for the same walkthrough 525 525 if (mSavePrecomputedFps) 526 526 { … … 758 758 bool TerrainFrameListener::processUnbufferedMouseInput(const FrameEvent& evt) 759 759 { 760 /* Rotation factors, may not be used if the second mouse button is pressed. */ 761 762 /* If the second mouse button is pressed, then the mouse movement results in 763 sliding the camera, otherwise we rotate. */ 760 // Rotation factors, may not be used if the second mouse button is pressed. 761 // If the second mouse button is pressed, then the mouse movement results in 762 // sliding the camera, otherwise we rotate. 764 763 if (mInputDevice->getMouseButton(1)) 765 764 { … … 1499 1498 break; 1500 1499 case KC_7: 1501 mTerrainContentGenerator->WriteObjects(objects_out_filename); 1500 { 1501 // generate new objects 1502 const int numObjects = 500; 1503 mApplication->generateScene(numObjects, mCurrentObjectType); 1504 } 1502 1505 break; 1503 1506 case KC_8: … … 1550 1553 1551 1554 case KC_F8: 1552 { 1553 // generate new objects 1554 const int objNum = 500; 1555 mApplication->generateScene(objNum, mCurrentObjectType); 1556 } 1557 break; 1555 1556 mTerrainContentGenerator->WriteObjects(objects_out_filename); 1557 break; 1558 1558 1559 case KC_F9: 1559 1560 mUseAnimation = !mUseAnimation;
Note: See TracChangeset
for help on using the changeset viewer.