Changeset 2775 for GTP


Ignore:
Timestamp:
06/19/08 01:49:49 (17 years ago)
Author:
mattausch
Message:
 
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  
    701701 
    702702 
    703 int Bvh::CountTriangles(BvhLeaf *leaf) const 
    704 { 
    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  
    714703void Bvh::ComputeBvhStats()  
    715704{ 
  • GTP/trunk/App/Demos/Vis/CHC_revisited/Bvh.h

    r2773 r2775  
    435435        */ 
    436436        BvhNode *GetRoot() { return mRoot; } 
    437         /** Counts the triangle in this leaf. 
    438         */ 
    439         int CountTriangles(BvhLeaf *leaf) const; 
    440437        /** Sets the scene camera 
    441438        */ 
  • GTP/trunk/App/Demos/Vis/CHC_revisited/RenderTraverser.cpp

    r2774 r2775  
    8787        if (node->GetLastRenderedFrame() != mFrameId) 
    8888        { 
    89                 if (mUseRenderQueue && mRenderState->SetState(RenderState::RENDER)) 
    90                         ++ mStats.mNumStateChanges; 
     89                if (!mUseRenderQueue) 
     90                        if (mRenderState->SetState(RenderState::RENDER)) 
     91                                ++ mStats.mNumStateChanges; 
    9192 
    9293                node->SetLastRenderedFrame(mFrameId); 
Note: See TracChangeset for help on using the changeset viewer.