BsWin32VideoModeInfo.h 886 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include "BsGLPrerequisites.h"
  3. #include "BsVideoModeInfo.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @copydoc VideoMode
  8. */
  9. class BS_RSGL_EXPORT Win32VideoMode : public VideoMode
  10. {
  11. public:
  12. Win32VideoMode(UINT32 width, UINT32 height, float refreshRate, UINT32 outputIdx);
  13. private:
  14. friend class Win32VideoOutputInfo;
  15. };
  16. /**
  17. * @copydoc VideoOutputInfo
  18. */
  19. class BS_RSGL_EXPORT Win32VideoOutputInfo : public VideoOutputInfo
  20. {
  21. public:
  22. Win32VideoOutputInfo(HMONITOR monitorHandle, UINT32 outputIdx);
  23. ~Win32VideoOutputInfo();
  24. /**
  25. * @brief Gets a Win32 handle to the monitor referenced by this object.
  26. */
  27. HMONITOR getMonitorHandle() const { return mMonitorHandle; }
  28. private:
  29. HMONITOR mMonitorHandle;
  30. };
  31. /**
  32. * @copydoc VideoModeInfo
  33. */
  34. class BS_RSGL_EXPORT Win32VideoModeInfo : public VideoModeInfo
  35. {
  36. public:
  37. Win32VideoModeInfo();
  38. };
  39. }