class CREOcclusionQuery : public CRendElementBase;
CREOcclusionQuery.h
int m_nCheckFrame;
int m_nDrawFrame;
UINT_PTR m_nOcclusionID;
this will carry a pointer LPDIRECT3DQUERY9, so it needs to be 64-bit on WIN64
uint32 m_nQueriesPerFrameCounter;
uint32 m_nReadResultNowCounter;
uint32 m_nReadResultTryCounter;
int m_nVisSamples;
CRenderMesh * m_pRMBox;
Vec3 m_vBoxMax;
Vec3 m_vBoxMin;
virtual ~CREOcclusionQuery();
CREOcclusionQuery();
virtual void GetMemoryUsage(ICrySizer * pSizer) const;
bool HasSucceeded() const;
virtual bool mfDraw(CShader * ef, SShaderPass * sfm);
virtual void mfPrepare(bool bCheckOverflow);
False - mergable, True - static mesh
virtual bool mfReadResult_Now();
virtual bool mfReadResult_Try(uint32 nDefaultNumSamples = 1);
virtual void mfReset();
bool RT_ReadResult_Try(uint32 nDefaultNumSamples);
friend class CRender3D;