Revision 1002,
789 bytes
checked in by mattausch, 19 years ago
(diff) |
debug run: fixing memory holes
|
Line | |
---|
1 | #ifndef _PlatformOcclusionQuery_H__
|
---|
2 | #define _PlatformOcclusionQuery_H__
|
---|
3 |
|
---|
4 | #include <OgreHardwareOcclusionQuery.h>
|
---|
5 | #include <OgreRenderSystem.h>
|
---|
6 |
|
---|
7 | #include "OcclusionQuery.h"
|
---|
8 |
|
---|
9 | namespace Ogre {
|
---|
10 |
|
---|
11 | /** This class is an implementation for occlusion queries using Ogre.
|
---|
12 | @remark the class encapsulates Ogre occlusion query calls.
|
---|
13 | */
|
---|
14 | class PlatformOcclusionQuery: public GtpVisibility::OcclusionQuery
|
---|
15 | {
|
---|
16 | public:
|
---|
17 |
|
---|
18 | PlatformOcclusionQuery(RenderSystem *rsys);
|
---|
19 |
|
---|
20 | virtual ~PlatformOcclusionQuery();
|
---|
21 |
|
---|
22 | virtual bool GetQueryResult(unsigned int &queryResult,
|
---|
23 | const bool waitForResult) const;
|
---|
24 | virtual void BeginQuery();
|
---|
25 | virtual void EndQuery();
|
---|
26 |
|
---|
27 | protected:
|
---|
28 | HardwareOcclusionQuery *mHardwareOcclusionQuery;
|
---|
29 | };
|
---|
30 |
|
---|
31 | } // namespace Ogre
|
---|
32 | #endif // PlatformOcclusionQuery_H |
---|
Note: See
TracBrowser
for help on using the repository browser.