Changeset 2773 for GTP/trunk/App/Demos/Vis/CHC_revisited/OcclusionQuery.cpp
- Timestamp:
- 06/18/08 20:42:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/OcclusionQuery.cpp
r2764 r2773 18 18 19 19 20 OcclusionQuery::OcclusionQuery(unsigned int idx):21 mQueryId(idx)22 {23 // reverse for multiequeries with 32 nodes24 mNodes.reserve(32);25 }26 27 28 20 OcclusionQuery::~OcclusionQuery() 29 21 { … … 32 24 33 25 34 void OcclusionQuery::BeginQuery() 26 void OcclusionQuery::BeginQuery() const 35 27 { 36 28 glBeginQueryARB(GL_SAMPLES_PASSED_ARB, mQueryId); … … 38 30 39 31 40 void OcclusionQuery::EndQuery() 32 void OcclusionQuery::EndQuery() const 41 33 { 42 34 glEndQueryARB(GL_SAMPLES_PASSED_ARB); … … 87 79 { 88 80 query = mOcclusionQueries[mCurrentQueryIdx]; 81 query->Reset(); 89 82 } 90 83
Note: See TracChangeset
for help on using the changeset viewer.