BsD3D9DriverList.h 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include "BsD3D9Prerequisites.h"
  3. #include "BsD3D9Driver.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Holds a list of all drivers (adapters) and video modes.
  8. */
  9. class BS_D3D9_EXPORT D3D9DriverList
  10. {
  11. public:
  12. D3D9DriverList();
  13. ~D3D9DriverList();
  14. /**
  15. * @brief Returns the number of drivers (adapters) available.
  16. */
  17. UINT32 count() const;
  18. /**
  19. * @brief Returns driver with the specified index.
  20. */
  21. D3D9Driver* item(UINT32 index);
  22. /**
  23. * @brief Returns drivers with the specified name or null if it cannot be found.
  24. */
  25. D3D9Driver* item(const String &name);
  26. /**
  27. * @brief Returns available video modes for all drivers and output devices.
  28. */
  29. VideoModeInfoPtr getVideoModeInfo() const { return mVideoModeInfo; }
  30. private:
  31. Vector<D3D9Driver> mDriverList;
  32. VideoModeInfoPtr mVideoModeInfo;
  33. };
  34. }