BsOcclusionQuery.cpp 603 B

12345678910111213141516
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "RenderAPI/BsOcclusionQuery.h"
  4. #include "Managers/BsQueryManager.h"
  5. namespace bs { namespace ct
  6. {
  7. OcclusionQuery::OcclusionQuery(bool binary)
  8. :mActive(false), mBinary(binary)
  9. { }
  10. SPtr<OcclusionQuery> OcclusionQuery::create(bool binary, UINT32 deviceIdx)
  11. {
  12. return QueryManager::instance().createOcclusionQuery(binary, deviceIdx);
  13. }
  14. }}