source: trunk/VUT/Ogre/include/OgrePlatformOcclusionQuery.h @ 160

Revision 160, 781 bytes checked in by mattausch, 19 years ago (diff)

added animation

RevLine 
[59]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
[86]22        virtual bool GetQueryResult(unsigned int &queryResult,
[160]23        const bool waitForResult) const;
[87]24        virtual void BeginQuery();
25        virtual void EndQuery();
[59]26
27protected:
28        HardwareOcclusionQuery *mHardwareOcclusionQuery;
29};
30
31} // namespace Ogre
32#endif // PlatformOcclusionQuery_H
Note: See TracBrowser for help on using the repository browser.