Changeset 158 for trunk/VUT/GtpVisibility/src
- Timestamp:
- 07/06/05 11:04:25 (19 years ago)
- Location:
- trunk/VUT/GtpVisibility/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r155 r158 40 40 { 41 41 mHierarchyInterface->PullUpVisibility(node); 42 mHierarchyInterface->Traverse AndRenderNode(node);42 mHierarchyInterface->TraverseNode(node); 43 43 } 44 44 else … … 111 111 if (wasVisible) 112 112 { 113 mHierarchyInterface->Traverse AndRenderNode(node);113 mHierarchyInterface->TraverseNode(node); 114 114 } 115 115 } … … 145 145 146 146 mHierarchyInterface->PullUpVisibility(node); 147 mHierarchyInterface->Traverse AndRenderNode(node);147 mHierarchyInterface->TraverseNode(node); 148 148 } 149 149 -
trunk/VUT/GtpVisibility/src/FrustumCullingManager.cpp
r155 r158 28 28 { 29 29 mHierarchyInterface->SetNodeVisible(node, true); 30 mHierarchyInterface->Traverse AndRenderNode(node);30 mHierarchyInterface->TraverseNode(node); 31 31 } 32 32 } -
trunk/VUT/GtpVisibility/src/HierarchyInterface.cpp
r155 r158 11 11 { 12 12 mDistanceQueue = new DistanceQueue(GreaterDistance<HierarchyNode *>(this)); 13 mTraversalStack = new std::stack<HierarchyNode *>;14 13 } 15 14 //----------------------------------------------------------------------- … … 17 16 { 18 17 delete mDistanceQueue; 19 delete mTraversalStack;20 18 } 21 19 //----------------------------------------------------------------------- … … 25 23 } 26 24 //----------------------------------------------------------------------- 27 void HierarchyInterface::InitTraversal( bool frontToBack)25 void HierarchyInterface::InitTraversal() 28 26 { 29 27 // initialise for front-to-back rendering 30 if (frontToBack)31 {32 ++ mFrameId;33 mCurrentTestIdx = 0;34 mNumTraversedNodes = 0;35 mRenderedNodes.clear();36 28 37 mDistanceQueue->push(mHierarchyRoot);38 }39 else 40 { // initialise for simple node traversal41 mTraversalStack->push(mHierarchyRoot); 42 }29 ++ mFrameId; 30 mCurrentTestIdx = 0; 31 mNumTraversedNodes = 0; 32 mRenderedNodes.clear(); 33 34 mDistanceQueue->push(mHierarchyRoot); 43 35 } 44 36 //----------------------------------------------------------------------- -
trunk/VUT/GtpVisibility/src/StopAndWaitCullingManager.cpp
r155 r158 31 31 { 32 32 mHierarchyInterface->SetNodeVisible(node, true); 33 mHierarchyInterface->Traverse AndRenderNode(node);33 mHierarchyInterface->TraverseNode(node); 34 34 } 35 35 else … … 45 45 if (visiblePixels > mVisibilityThreshold) 46 46 { 47 mHierarchyInterface->Traverse AndRenderNode(node);47 mHierarchyInterface->TraverseNode(node); 48 48 } 49 49 else
Note: See TracChangeset
for help on using the changeset viewer.