source: GTP/trunk/Lib/Vis/OnlineCullingCHC/include/OcclusionQuery.h @ 902

Revision 902, 875 bytes checked in by mattausch, 19 years ago (diff)
Line 
1#ifndef _OcclusionQuery_H__
2#define _OcclusionQuery_H__
3
4namespace GtpVisibility {
5
6/** This class is an abstract interface for occlusion queries.
7*/
8class OcclusionQuery
9{
10public:
11        virtual ~OcclusionQuery() {};
12        /** Returns the result of an occlusion query in terms of visible pixels.
13                @param queryResult the number of visible pixels if the result was available
14                @param waitForResult if we should wait for the result until available
15                @returns if the result was already available
16        */
17        virtual bool GetQueryResult(unsigned int &queryResult, const bool waitForResult) const = 0;
18        /** Begins occlusion query.
19                @remark the query counts the number of visible pixels between it's begin and end
20        */
21        virtual void BeginQuery() = 0;
22        /** Ends occlusion query.
23        */
24        virtual void EndQuery() = 0;
25};
26
27} // namespace GtpVisibility
28#endif // OcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.