source: GTP/trunk/Lib/Vis/Preprocessing/src/OcclusionQuery.h @ 2663

Revision 2663, 732 bytes checked in by mattausch, 17 years ago (diff)

debugging vp evaluation

Line 
1#ifndef _OcclusionQuery_H__
2#define _OcclusionQuery_H__
3
4#include <vector>
5
6
7namespace GtpVisibilityPreprocessor {
8
9/** This class is an implementation for occlusion queries.
10        @remark the class encapsulates occlusion query calls.
11*/
12class OcclusionQuery
13{
14public:
15       
16        OcclusionQuery();
17
18        virtual ~OcclusionQuery();
19
20        virtual bool ResultAvailable() const;
21        virtual unsigned int GetQueryResult() const;
22        virtual void BeginQuery();
23        virtual void EndQuery();
24       
25        static void GenQueries(std::vector<OcclusionQuery *> &queries, int numQueries);
26
27        unsigned int GetQueryId() const;
28
29
30protected:
31
32        OcclusionQuery(const unsigned int idx);
33       
34        unsigned int mId;
35};
36
37} // namespace
38#endif // OcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.