Changeset 345 for trunk/VUT/chcdemo
- Timestamp:
- 10/21/05 19:53:30 (19 years ago)
- Location:
- trunk/VUT/chcdemo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/chcdemo/HierarchyNode.cpp
r74 r345 459 459 } 460 460 461 462 float HierarchyNode::GetDistance()463 {464 return mDistance;465 }466 467 468 461 void HierarchyNode::SetDistance(float distance) 469 462 { -
trunk/VUT/chcdemo/HierarchyNode.h
r87 r345 53 53 bool Visible(); 54 54 //! last time this node was visited (in framenumber) 55 int LastVisited();55 unsigned int LastVisited(); 56 56 //! sets visible flag 57 57 void SetVisible(bool visible); 58 58 //! sets timestamp (current framenumber) 59 void SetLastVisited( int lastVisited);59 void SetLastVisited(unsigned int lastVisited); 60 60 //! is this node a leaf node (i.e., geometry) 61 61 bool IsLeaf(); -
trunk/VUT/chcdemo/RenderTraverser.cpp
r86 r345 199 199 // update node's visited flag 200 200 node->SetLastVisited(mFrameID); 201 201 //if (mFrameID == node->LastVisited()) mNumFrustumCulledNodes ++; 202 202 // skip testing previously visible interior nodes 203 203 if(leafOrWasInvisible) … … 215 215 { 216 216 // for stats 217 mNumFrustumCulledNodes ++;217 //mNumFrustumCulledNodes ++; 218 218 } 219 219 } … … 331 331 // get next available test id 332 332 unsigned int occlusionQuery = mOcclusionQueries[mCurrentTestIdx++]; 333 333 mNumFrustumCulledNodes ++; 334 334 node->SetOcclusionQuery(occlusionQuery); 335 335 // do the actual occlusion query for this node
Note: See TracChangeset
for help on using the changeset viewer.