- Timestamp:
- 06/19/08 01:49:49 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/CHC_revisited
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Bvh.cpp
r2774 r2775 701 701 702 702 703 int Bvh::CountTriangles(BvhLeaf *leaf) const704 {705 int triangleCount = 0;706 707 for (int i = leaf->mFirst; i <= leaf->mLast; ++ i)708 triangleCount += mGeometry[i]->GetGeometry()->GetNumTriangles();709 710 return triangleCount;711 }712 713 714 703 void Bvh::ComputeBvhStats() 715 704 { -
GTP/trunk/App/Demos/Vis/CHC_revisited/Bvh.h
r2773 r2775 435 435 */ 436 436 BvhNode *GetRoot() { return mRoot; } 437 /** Counts the triangle in this leaf.438 */439 int CountTriangles(BvhLeaf *leaf) const;440 437 /** Sets the scene camera 441 438 */ -
GTP/trunk/App/Demos/Vis/CHC_revisited/RenderTraverser.cpp
r2774 r2775 87 87 if (node->GetLastRenderedFrame() != mFrameId) 88 88 { 89 if (mUseRenderQueue && mRenderState->SetState(RenderState::RENDER)) 90 ++ mStats.mNumStateChanges; 89 if (!mUseRenderQueue) 90 if (mRenderState->SetState(RenderState::RENDER)) 91 ++ mStats.mNumStateChanges; 91 92 92 93 node->SetLastRenderedFrame(mFrameId);
Note: See TracChangeset
for help on using the changeset viewer.