Changeset 2690 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 05/20/08 17:15:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2689 r2690 667 667 668 668 //glFinish(); 669 #if 0670 //-- now issue queries for all objects671 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 #else684 685 669 int q = 0; 686 670 … … 703 687 704 688 //-- reenable other state 705 #if 0706 bool available;707 708 do709 {710 available = mOcclusionQueries[t]->ResultAvailable();711 712 if (!available) cout << "W";713 }714 while (!available);715 #endif716 689 717 690 pixelCount = mOcclusionQueries[t]->GetQueryResult(); … … 722 695 723 696 } 724 725 //j += q; 726 } 727 #endif 697 } 698 728 699 //glFinish(); 729 700 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); … … 873 844 874 845 875 876 877 void 878 GlRendererBuffer::EvalRenderCostSample(RenderCostSample &sample, 879 const bool useOcclusionQueries, 880 const int threshold 881 ) 846 void GlRendererBuffer::EvalRenderCostSample(RenderCostSample &sample, 847 const bool useOcclusionQueries, 848 const int threshold) 882 849 { 883 850 // choose a random view point … … 902 869 903 870 for (it = mObjects.begin(); it != it_end; ++ it) 904 {905 871 (*it)->mCounter = 0; 906 907 }908 872 909 873 ++ mFrame;
Note: See TracChangeset
for help on using the changeset viewer.