| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- #include "BsGLPrerequisites.h"
- #include "BsTimerQuery.h"
- namespace BansheeEngine
- {
- /**
- * @copydoc TimerQuery
- */
- class BS_RSGL_EXPORT GLTimerQuery : public TimerQuery
- {
- public:
- GLTimerQuery();
- ~GLTimerQuery();
- /**
- * @copydoc TimerQuery::begin
- */
- virtual void begin();
- /**
- * @copydoc TimerQuery::end
- */
- virtual void end();
- /**
- * @copydoc TimerQuery::isReady
- */
- virtual bool isReady() const;
- /**
- * @copydoc TimerQuery::getTimeMs
- */
- virtual float getTimeMs();
- private:
- friend class QueryManager;
- GLuint mQueryStartObj;
- GLuint mQueryEndObj;
- bool mFinalized;
- float mTimeDelta;
- void finalize();
- };
- }
|