BsD3D9DriverList.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsD3D9Prerequisites.h"
  5. #include "BsD3D9Driver.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup D3D9
  9. * @{
  10. */
  11. /** Holds a list of all drivers (adapters) and video modes. */
  12. class BS_D3D9_EXPORT D3D9DriverList
  13. {
  14. public:
  15. D3D9DriverList();
  16. ~D3D9DriverList();
  17. /** Returns the number of drivers (adapters) available. */
  18. UINT32 count() const;
  19. /** Returns driver with the specified index. */
  20. D3D9Driver* item(UINT32 index);
  21. /** Returns drivers with the specified name or null if it cannot be found. */
  22. D3D9Driver* item(const String &name);
  23. /** Returns available video modes for all drivers and output devices. */
  24. SPtr<VideoModeInfo> getVideoModeInfo() const { return mVideoModeInfo; }
  25. private:
  26. Vector<D3D9Driver> mDriverList;
  27. SPtr<VideoModeInfo> mVideoModeInfo;
  28. };
  29. /** @} */
  30. }