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

Revision 87, 879 bytes checked in by mattausch, 19 years ago (diff)
RevLine 
[59]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.
[86]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
[59]16        */
[86]17        virtual bool GetQueryResult(unsigned int &queryResult,
18                const bool waitForResult) const = 0;
[59]19        /** Begins occlusion query.
20                @remark the query counts the number of visible pixels between it's begin and end
21        */
[87]22        virtual void BeginQuery() = 0;
[59]23        /** Ends occlusion query.
24        */
[87]25        virtual void EndQuery() = 0;
[59]26};
27
28} // namespace GtpVisibility
29#endif // OcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.