Revision 59,
788 bytes
checked in by mattausch, 20 years ago
(diff) |
completely changed file structure plus software design
|
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 unsigned int GetQueryResult() const;
|
---|
23 | virtual bool ResultAvailable() const;
|
---|
24 | virtual void BeginQuery() const;
|
---|
25 | virtual void EndQuery() const;
|
---|
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.