Changeset 94 for trunk/VUT/GtpVisibility
- Timestamp:
- 05/12/05 18:55:25 (20 years ago)
- Location:
- trunk/VUT/GtpVisibility/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r87 r94 1 1 #include "CoherentHierarchicalCullingManager.h" 2 #include < windows.h>2 #include <OgreLogManager.h> 3 3 4 4 namespace GtpVisibility { … … 8 8 { 9 9 InitFrame(); 10 Ogre::LogManager::getSingleton().logMessage("**** CHCULL ****\n"); 10 11 11 12 QueryQueue queryQueue; … … 20 21 mHierarchyInterface->GetQueue()->empty())) 21 22 { 22 //if (mHierarchyInterface->GetQueue()->empty())OutputDebugString("empty\n"); 23 24 HierarchyNode *node = queryQueue.front().first; 23 HierarchyNode *node = queryQueue.front().first; 25 24 26 25 queryQueue.pop(); -
trunk/VUT/GtpVisibility/src/FrustumCullingManager.cpp
r87 r94 1 1 #include "FrustumCullingManager.h" 2 #include < windows.h>2 #include <OgreLogManager.h> 3 3 4 4 namespace GtpVisibility { … … 8 8 { 9 9 InitFrame(); 10 10 Ogre::LogManager::getSingleton().logMessage("**** Frustum Culling ****\n"); 11 11 while (!mHierarchyInterface->GetQueue()->empty()) 12 12 { -
trunk/VUT/GtpVisibility/src/StopAndWaitCullingManager.cpp
r92 r94 1 1 #include "StopAndWaitCullingManager.h" 2 #include <windows.h> 2 #include <OgreLogManager.h> 3 3 4 4 5 namespace GtpVisibility { … … 8 9 { 9 10 InitFrame(); 10 11 Ogre::LogManager::getSingleton().logMessage("*** STOP AND WAIT CULL ****\n"); 12 11 13 while (!mHierarchyInterface->GetQueue()->empty()) 12 14 { -
trunk/VUT/GtpVisibility/src/VisibilityManager.cpp
r92 r94 9 9 //----------------------------------------------------------------------- 10 10 VisibilityManager::VisibilityManager(VisibilityEnvironment *visEnvironment): 11 mVisibilityThreshold(0) 11 mVisibilityThreshold(0), mCullingManager(NULL) 12 12 { 13 13 mVisibilityEnvironment = visEnvironment; 14 14 15 mCullingManagerType = VisibilityEnvironment::STOP_AND_WAIT_CULLING;16 mCullingManager = new StopAndWaitCullingManager();15 SetCullingManager(VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING); 16 //SetCullingManager(VisibilityEnvironment::FRUSTUM_CULLING); 17 17 18 18 mQueryManager = new DummyQueryManager(0); … … 28 28 VisibilityEnvironment::CullingManagerType ocmType) 29 29 { 30 if (mCullingManagerType != ocmType) 30 // change only if necessary 31 if (!mCullingManager || (mCullingManagerType != ocmType)) 31 32 { 32 33 // delete old culling manager 33 delete mCullingManager; 34 if(mCullingManager) 35 delete mCullingManager; 34 36 35 37 mCullingManagerType = ocmType;
Note: See TracChangeset
for help on using the changeset viewer.