Changeset 2773 for GTP/trunk/App/Demos/Vis/CHC_revisited/OcclusionQuery.h
- 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.h
r2772 r2773 17 17 { 18 18 public: 19 19 /** constructor requesting an opengl occlusion query. 20 */ 20 21 OcclusionQuery(); 21 22 … … 26 27 unsigned int GetQueryResult() const; 27 28 28 void BeginQuery() ;29 void BeginQuery() const; 29 30 30 void EndQuery() ;31 void EndQuery() const; 31 32 32 33 unsigned int GetQueryId() const; … … 34 35 */ 35 36 inline BvhNode *GetFrontNode() const { return mNodes[0]; } 36 /** Reset the contents of this query. 37 inline const BvhNodeContainer &GetNodes() const { return mNodes; } 38 39 /** Reset the list of nodes associated with this query. 37 40 */ 38 41 inline void Reset() { mNodes.clear(); } … … 40 43 */ 41 44 inline void AddNode(BvhNode *node) { mNodes.push_back(node); } 42 /** Convenience method that sets up a single nodequery.45 /** Returns the size of the multiquery. 43 46 */ 44 inline void SetNode(BvhNode *node) { Reset(); AddNode(node);}47 inline int GetSize() const { return (int)mNodes.size();} 45 48 46 47 49 protected: 48 50 49 OcclusionQuery(unsigned int id);50 51 51 52 52 /////// 53 53 //-- members 54 54 55 //float mPFail;56 55 /// all nodes that are tested with the same query 57 56 BvhNodeContainer mNodes;
Note: See TracChangeset
for help on using the changeset viewer.