Rev | Line | |
---|
[59] | 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 |
|
---|
[86] | 22 | virtual bool GetQueryResult(unsigned int &queryResult,
|
---|
| 23 | const bool waitForResult) const;
|
---|
[87] | 24 | virtual void BeginQuery();
|
---|
| 25 | virtual void EndQuery();
|
---|
[59] | 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.