BsGLEventQuery.h 751 B

1234567891011121314151617181920212223242526272829303132
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsGLPrerequisites.h"
  5. #include "RenderAPI/BsEventQuery.h"
  6. namespace bs { namespace ct
  7. {
  8. /** @addtogroup GL
  9. * @{
  10. */
  11. /** @copydoc EventQuery */
  12. class GLEventQuery : public EventQuery
  13. {
  14. public:
  15. GLEventQuery(UINT32 deviceIdx);
  16. ~GLEventQuery();
  17. /** @copydoc EventQuery::begin */
  18. void begin(const SPtr<CommandBuffer>& cb = nullptr) override;
  19. /** @copydoc EventQuery::isReady */
  20. bool isReady() const override;
  21. private:
  22. GLuint mQueryObj;
  23. };
  24. /** @} */
  25. }}