2
0

BsLinuxVideoModeInfo.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsGLPrerequisites.h"
  5. #include "RenderAPI/BsVideoModeInfo.h"
  6. #include <X11/extensions/Xrandr.h>
  7. namespace bs { namespace ct
  8. {
  9. /** @addtogroup GL
  10. * @{
  11. */
  12. /** @copydoc VideoMode */
  13. class LinuxVideoMode : public VideoMode
  14. {
  15. public:
  16. LinuxVideoMode(UINT32 width, UINT32 height, float refreshRate, UINT32 outputIdx);
  17. private:
  18. friend class LinuxVideoOutputInfo;
  19. };
  20. /** @copydoc VideoOutputInfo */
  21. class LinuxVideoOutputInfo : public VideoOutputInfo
  22. {
  23. public:
  24. LinuxVideoOutputInfo(::Display* x11Display, XRROutputInfo* outputInfo, XRRCrtcInfo* crtcInfo,
  25. XRRScreenResources* screenRes, UINT32 resIdx, UINT32 outputIdx);
  26. };
  27. /** @copydoc VideoModeInfo */
  28. class LinuxVideoModeInfo : public VideoModeInfo
  29. {
  30. public:
  31. LinuxVideoModeInfo();
  32. };
  33. /** @} */
  34. }}