source: trunk/VUT/GtpVisibility/include/OcclusionQuery.h @ 87

Revision 87, 879 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,
18                const bool waitForResult) const = 0;
19        /** Begins occlusion query.
20                @remark the query counts the number of visible pixels between it's begin and end
21        */
22        virtual void BeginQuery() = 0;
23        /** Ends occlusion query.
24        */
25        virtual void EndQuery() = 0;
26};
27
28} // namespace GtpVisibility
29#endif // OcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.