source: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgrePlatformOcclusionQuery.h @ 1002

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
9namespace Ogre {
10
11/** This class is an implementation for occlusion queries using Ogre.
12        @remark the class encapsulates Ogre occlusion query calls.
13*/
14class PlatformOcclusionQuery: public GtpVisibility::OcclusionQuery
15{
16public:
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
27protected:
28        HardwareOcclusionQuery *mHardwareOcclusionQuery;
29};
30
31} // namespace Ogre
32#endif // PlatformOcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.