| 1 |
/* |
| 2 |
* Copyright (C) 2005-2018 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "rendering/gl/RenderSystemGL.h" |
| 12 |
#include "windowing/osx/WinSystemOSX.h" |
| 13 |
|
| 14 |
class CWinSystemOSXGL : public CWinSystemOSX, public CRenderSystemGL |
| 15 |
{ |
| 16 |
public: |
| 17 |
CWinSystemOSXGL() = default; |
| 18 |
~CWinSystemOSXGL() override = default; |
| 19 |
|
| 20 |
static void Register(); |
| 21 |
static std::unique_ptr<CWinSystemBase> CreateWinSystem(); |
| 22 |
|
| 23 |
// Implementation of CWinSystemBase via CWinSystemOSX |
| 24 |
CRenderSystemBase *GetRenderSystem() override { return this; } |
| 25 |
bool ResizeWindow(int newWidth, int newHeight, int newLeft, int newTop) override; |
| 26 |
bool SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool blankOtherDisplays) override; |
| 27 |
|
| 28 |
protected: |
| 29 |
void PresentRenderImpl(bool rendered) override; |
| 30 |
void SetVSyncImpl(bool enable) override; |
| 31 |
}; |