mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
28 lines
562 B
C++
28 lines
562 B
C++
|
#ifndef _GAME_OCCLUSION_QUERY_H
|
||
|
#define _GAME_OCCLUSION_QUERY_H
|
||
|
|
||
|
#include <OgreHardwareOcclusionQuery.h>
|
||
|
|
||
|
namespace MWRender
|
||
|
{
|
||
|
///
|
||
|
/// \brief Implements hardware occlusion queries on the GPU
|
||
|
///
|
||
|
class OcclusionQuery
|
||
|
{
|
||
|
public:
|
||
|
OcclusionQuery();
|
||
|
|
||
|
bool supported();
|
||
|
///< returns true if occlusion queries are supported on the user's hardware
|
||
|
|
||
|
private:
|
||
|
Ogre::HardwareOcclusionQuery* mSunTotalAreaQuery;
|
||
|
Ogre::HardwareOcclusionQuery* mSunVisibleAreaQuery;
|
||
|
|
||
|
bool mSupported;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|