Changeset 174 for trunk/VUT/work
- Timestamp:
- 07/14/05 09:06:16 (20 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp
r173 r174 126 126 mDelayedQueriesIssued(0.0), 127 127 mDelayedTraversedNodes(0.0), 128 mUseItemBuffer(false),129 mRenderPatchesForItemBuffer(false),130 128 mCurrentObjectType(0), 131 129 mApplication(app), 132 130 mUseAnimation(false), 133 mDeleteObjects(false) 131 mDeleteObjects(false), 132 mUseItemBuffer(false), 133 mItemBufferMode(GtpVisibility::QueryManager::PATCH_VISIBILITY) 134 134 { 135 135 //mInputDevice = PlatformManager::getSingleton().createInputReader(); … … 424 424 dynamic_cast<VisibilityTerrainSceneManager *>(mSceneMgr); 425 425 426 int itemBufferMode = useItemBuffer ? mItemBufferMode : 0; 427 428 int queryModes = GtpVisibility::QueryManager::PATCH_VISIBILITY; 429 queryModes |= GtpVisibility::QueryManager::GEOMETRY_VISIBILITY; 430 queryModes |= GtpVisibility::QueryManager::NODE_VISIBILITY; 431 426 432 mQueryManager = new OcclusionQueriesQueryManager(sm->GetHierarchyInterface(), 427 mWindow->getViewport(0), true, useItemBuffer); 433 mWindow->getViewport(0), queryModes, useItemBuffer); 434 428 435 //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false); 429 436 … … 1011 1018 1012 1019 case KC_C: 1013 mRenderPatchesForItemBuffer = !mRenderPatchesForItemBuffer; 1020 1021 if (mItemBufferMode != GtpVisibility::QueryManager::GEOMETRY_VISIBILITY) 1022 mItemBufferMode = GtpVisibility::QueryManager::GEOMETRY_VISIBILITY; 1023 else 1024 mItemBufferMode = GtpVisibility::QueryManager::PATCH_VISIBILITY; 1025 1014 1026 break; 1015 1027 -
trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.h
r173 r174 224 224 bool mUseItemBuffer; 225 225 bool mUseAnimation; 226 bool mRenderPatchesForItemBuffer; 226 227 int mItemBufferMode; 227 228 228 229 Real mVizCameraHeight;
Note: See TracChangeset
for help on using the changeset viewer.