Changeset 1256 for GTP/trunk/App/Demos
- Timestamp:
- 08/22/06 13:19:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r1238 r1256 742 742 { 743 743 mTimeFrameEnded = mTimer->getMilliseconds(); 744 //Ogre::LogManager::getSingleton().logMessage("Frame ended");745 744 } 746 745 … … 749 748 if (mRecordVideo) // record current frame 750 749 { 751 //Ogre::LogManager::getSingleton().logMessage("taking video frame");752 750 takeVideoFrame(video_out); 753 //Ogre::LogManager::getSingleton().logMessage("finished");754 } 751 } 752 755 753 //-- IMPORTANT: must be set, otherwise terrain is not rendered correctly 756 754 mSceneMgr->endFrame(); … … 1114 1112 1115 1113 //-- culling stats 1114 1116 1115 mSceneMgr->getOption("NumFrustumCulledNodes", &opt); sprintf(str,": %d", opt); 1117 1116 mFrustumCulledNodesInfo->setCaption(str); … … 1140 1139 mTraversedNodesInfo->setCaption(str); 1141 1140 1142 // update stats for demo 1143 mMyStatsAlgorithmInfo->setCaption(msApprevAlgorithmCaptions[mCurrentAlgorithm]); 1144 sprintf(str,": %d", (int)currentFps); 1145 mMyStatsFpsInfo->setCaption(str); 1141 if (mRecordVideo) 1142 { 1143 // update stats for demo 1144 mMyStatsAlgorithmInfo->setCaption(msApprevAlgorithmCaptions[mCurrentAlgorithm]); 1145 sprintf(str,": %d", (int)currentFps); 1146 mMyStatsFpsInfo->setCaption(str); 1147 } 1146 1148 1147 1149 }
Note: See TracChangeset
for help on using the changeset viewer.