Revision 59,
864 bytes
checked in by mattausch, 20 years ago
(diff) |
completely changed file structure plus software design
|
Line | |
---|
1 | #ifndef _OcclusionQuery_H__
|
---|
2 | #define _OcclusionQuery_H__
|
---|
3 |
|
---|
4 | namespace GtpVisibility {
|
---|
5 |
|
---|
6 | /** This class is an abstract interface for occlusion queries.
|
---|
7 | */
|
---|
8 | class OcclusionQuery
|
---|
9 | {
|
---|
10 | public:
|
---|
11 | // OcclusionQuery();
|
---|
12 | virtual ~OcclusionQuery() {};
|
---|
13 | /** Returns the result of an occlusion query in terms of visible pixels.
|
---|
14 | @returns number of visible pixels
|
---|
15 | */
|
---|
16 | virtual unsigned int GetQueryResult() const = 0;
|
---|
17 | /** Returns true if the result of the query is available, false otherwise.
|
---|
18 | @returns if result is available
|
---|
19 | */
|
---|
20 | virtual bool ResultAvailable() const = 0;
|
---|
21 | /** Begins occlusion query.
|
---|
22 | @remark the query counts the number of visible pixels between it's begin and end
|
---|
23 | */
|
---|
24 | virtual void BeginQuery() const = 0;
|
---|
25 | /** Ends occlusion query.
|
---|
26 | */
|
---|
27 | virtual void EndQuery() const = 0;
|
---|
28 | };
|
---|
29 |
|
---|
30 | } // namespace GtpVisibility
|
---|
31 | #endif // OcclusionQuery_H |
---|
Note: See
TracBrowser
for help on using the repository browser.