Revision 2663,
732 bytes
checked in by mattausch, 17 years ago
(diff) |
debugging vp evaluation
|
Rev | Line | |
---|
[1001] | 1 | #ifndef _OcclusionQuery_H__
|
---|
| 2 | #define _OcclusionQuery_H__
|
---|
| 3 |
|
---|
| 4 | #include <vector>
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | namespace GtpVisibilityPreprocessor {
|
---|
| 8 |
|
---|
| 9 | /** This class is an implementation for occlusion queries.
|
---|
| 10 | @remark the class encapsulates occlusion query calls.
|
---|
| 11 | */
|
---|
| 12 | class OcclusionQuery
|
---|
| 13 | {
|
---|
| 14 | public:
|
---|
| 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 |
|
---|
[2663] | 25 | static void GenQueries(std::vector<OcclusionQuery *> &queries, int numQueries);
|
---|
[1001] | 26 |
|
---|
| 27 | unsigned int GetQueryId() const;
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | protected:
|
---|
| 31 |
|
---|
| 32 | OcclusionQuery(const unsigned int idx);
|
---|
[2663] | 33 |
|
---|
[1001] | 34 | unsigned int mId;
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 | } // namespace
|
---|
| 38 | #endif // OcclusionQuery_H |
---|
Note: See
TracBrowser
for help on using the repository browser.