| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsD3D9Prerequisites.h"
- #include "BsD3D9Resource.h"
- #include "BsEventQuery.h"
- namespace BansheeEngine
- {
- /**
- * @copydoc EventQuery
- */
- class BS_D3D9_EXPORT D3D9EventQuery : public EventQuery, public D3D9Resource
- {
- public:
- D3D9EventQuery();
- ~D3D9EventQuery();
- /**
- * @copydoc EventQuery::begin
- */
- virtual void begin();
- /**
- * @copydoc EventQuery::isReady
- */
- virtual bool isReady() const;
- /**
- * @copydoc D3D9Resource::notifyOnDeviceCreate
- */
- virtual void notifyOnDeviceCreate(IDirect3DDevice9* d3d9Device);
- /**
- * @copydoc D3D9Resource::notifyOnDeviceDestroy
- */
- virtual void notifyOnDeviceDestroy(IDirect3DDevice9* d3d9Device);
- /**
- * @copydoc D3D9Resource::notifyOnDeviceLost
- */
- virtual void notifyOnDeviceLost(IDirect3DDevice9* d3d9Device);
- /**
- * @copydoc D3D9Resource::notifyOnDeviceReset
- */
- virtual void notifyOnDeviceReset(IDirect3DDevice9* d3d9Device);
- private:
- /**
- * @brief Creates the internal DX9 query.
- */
- void createQuery();
- /**
- * @brief Releases the internal DX9 query.
- */
- void releaseQuery();
- private:
- bool mQueryIssued;
- IDirect3DQuery9* mQuery;
- IDirect3DDevice9* mDevice;
- };
- }
|