Ignore:
Timestamp:
05/20/08 17:15:44 (16 years ago)
Author:
mattausch
Message:

strange errors!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2689 r2690  
    667667         
    668668        //glFinish(); 
    669 #if 0 
    670         //-- now issue queries for all objects 
    671         for (int j = 0; j < (int)mObjects.size(); ++ j)  
    672         { 
    673                 mOcclusionQueries[j]->BeginQuery(); 
    674                 RenderIntersectable(mObjects[j]); 
    675                 mOcclusionQueries[j]->EndQuery(); 
    676  
    677                 unsigned int pixelCount; 
    678  
    679                 pixelCount = mOcclusionQueries[j]->GetQueryResult(); 
    680                  
    681                 mObjects[j]->mCounter += pixelCount; 
    682         } 
    683 #else 
    684  
    685669        int q = 0; 
    686670 
     
    703687                 
    704688                        //-- reenable other state 
    705 #if 0 
    706                         bool available; 
    707  
    708                         do  
    709                         { 
    710                                 available = mOcclusionQueries[t]->ResultAvailable(); 
    711                                  
    712                                 if (!available) cout << "W"; 
    713                         }  
    714                         while (!available); 
    715 #endif 
    716689 
    717690                        pixelCount = mOcclusionQueries[t]->GetQueryResult(); 
     
    722695                 
    723696                } 
    724  
    725                 //j += q; 
    726         } 
    727 #endif 
     697        } 
     698 
    728699        //glFinish(); 
    729700        glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 
     
    873844 
    874845 
    875  
    876  
    877 void 
    878 GlRendererBuffer::EvalRenderCostSample(RenderCostSample &sample, 
    879                                                                            const bool useOcclusionQueries, 
    880                                                                            const int threshold 
    881                                                                            ) 
     846void GlRendererBuffer::EvalRenderCostSample(RenderCostSample &sample, 
     847                                                                                        const bool useOcclusionQueries, 
     848                                                                                        const int threshold) 
    882849{ 
    883850        // choose a random view point 
     
    902869 
    903870        for (it = mObjects.begin(); it != it_end; ++ it)  
    904         { 
    905871                (*it)->mCounter = 0; 
    906  
    907         } 
    908872 
    909873        ++ mFrame; 
Note: See TracChangeset for help on using the changeset viewer.