| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsGLPrerequisites.h"
- #include "RenderAPI/BsVideoModeInfo.h"
- #include <CoreGraphics/CoreGraphics.h>
- #include <CoreVideo/CoreVideo.h>
- namespace bs { namespace ct
- {
- /** @addtogroup GL
- * @{
- */
- /** @copydoc VideoMode */
- class MacOSVideoMode : public VideoMode
- {
- public:
- MacOSVideoMode(UINT32 width, UINT32 height, float refreshRate, UINT32 outputIdx);
- ~MacOSVideoMode() override;
- /** Returns internal Core Graphics video mode reference. */
- CGDisplayModeRef _getModeRef() const { return mModeRef; }
- private:
- MacOSVideoMode(CGDisplayModeRef modeRef, CVDisplayLinkRef linkRef, UINT32 outputIdx);
- friend class MacOSVideoOutputInfo;
- CGDisplayModeRef mModeRef;
- };
- /** @copydoc VideoOutputInfo */
- class MacOSVideoOutputInfo : public VideoOutputInfo
- {
- public:
- MacOSVideoOutputInfo(CGDirectDisplayID displayID, UINT32 outputIdx);
- /** Returns the Core Graphics identifier for this display. */
- CGDirectDisplayID _getDisplayID() const { return mDisplayID; }
- private:
- CGDirectDisplayID mDisplayID;
- };
- /** @copydoc VideoModeInfo */
- class MacOSVideoModeInfo : public VideoModeInfo
- {
- public:
- MacOSVideoModeInfo();
- };
- /** @} */
- }}
|