BsD3D9DriverList.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /**
  9. * @brief Holds a list of all drivers (adapters) and video modes.
  10. */
  11. class BS_D3D9_EXPORT D3D9DriverList
  12. {
  13. public:
  14. D3D9DriverList();
  15. ~D3D9DriverList();
  16. /**
  17. * @brief Returns the number of drivers (adapters) available.
  18. */
  19. UINT32 count() const;
  20. /**
  21. * @brief Returns driver with the specified index.
  22. */
  23. D3D9Driver* item(UINT32 index);
  24. /**
  25. * @brief Returns drivers with the specified name or null if it cannot be found.
  26. */
  27. D3D9Driver* item(const String &name);
  28. /**
  29. * @brief Returns available video modes for all drivers and output devices.
  30. */
  31. VideoModeInfoPtr getVideoModeInfo() const { return mVideoModeInfo; }
  32. private:
  33. Vector<D3D9Driver> mDriverList;
  34. VideoModeInfoPtr mVideoModeInfo;
  35. };
  36. }