Changeset 145 for trunk/VUT/work
- Timestamp:
- 06/22/05 10:05:06 (20 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp
r144 r145 377 377 for (geomIt = visibleGeometry.begin(); geomIt != geomIt_end; ++geomIt) 378 378 { 379 averageGeometryVis += (*geomIt).GetVisiblePixels(); 380 381 std::stringstream d; d << "Geometry visibility: " << (*geomIt).GetVisiblePixels(); 379 float vis = relativeVisibility ? 380 (*geomIt).ComputeRelativeVisibility() : (float)(*geomIt).GetVisiblePixels(); 381 382 averageGeometryVis += vis; 383 384 std::stringstream d; d << "Geometry visibility: " << vis; 382 385 LogManager::getSingleton().logMessage(d.str()); 383 386 } … … 387 390 for (nodesIt = visibleNodes.begin(); nodesIt != nodesIt_end; ++nodesIt) 388 391 { 389 averageNodeVis += (*nodesIt).GetVisiblePixels(); 390 391 std::stringstream d; d << "Node visibility: " << (*nodesIt).GetVisiblePixels(); 392 float vis = relativeVisibility ? 393 (*nodesIt).ComputeRelativeVisibility() : (float)(*nodesIt).GetVisiblePixels(); 394 395 averageNodeVis += vis; 396 397 std::stringstream d; d << "Node visibility: " << vis; 392 398 LogManager::getSingleton().logMessage(d.str()); 393 399 } 394 400 395 if ( (int)visibleNodes.size())401 if (visibleNodes.size()) 396 402 averageNodeVis /= (float)visibleNodes.size(); 397 if ( (int)visibleGeometry.size())403 if (visibleGeometry.size()) 398 404 averageGeometryVis /= (float)visibleGeometry.size(); 399 405 -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r144 r145 18 18 /* TestCullingTerrainApplication implementation */ 19 19 /*******************************************************/ 20 20 TestCullingTerrainApplication::TestCullingTerrainApplication(): 21 mTerrainContentGenerator(NULL) 22 { 23 } 21 24 //----------------------------------------------------------------------- 22 25 TestCullingTerrainApplication::~TestCullingTerrainApplication() … … 69 72 bool TestCullingTerrainApplication::setup() 70 73 { 71 bool result= ExampleApplication::setup();72 73 if ( mWindow)74 bool carryOn = ExampleApplication::setup(); 75 76 if (carryOn) 74 77 createRenderTargetListener(); 75 78 76 return result;79 return carryOn; 77 80 } 78 81 //----------------------------------------------------------------------- -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h
r139 r145 28 28 { 29 29 public: 30 TestCullingTerrainApplication(); 30 31 ~TestCullingTerrainApplication(); 31 32
Note: See TracChangeset
for help on using the changeset viewer.