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

Revision 1001, 767 bytes checked in by mattausch, 18 years ago (diff)

added mesh instance support
improved support for occlusion queries + other extensions

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, const int numQueries);
26
27        unsigned int GetQueryId() const;
28
29
30protected:
31
32        OcclusionQuery(const unsigned int idx);
33        static bool sUseArbQueries;
34
35        unsigned int mId;
36};
37
38} // namespace
39#endif // OcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.