| 1 |
/* |
| 2 |
* Copyright (C) 2005-2020 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 |
#include "WinSystemEGL.h" |
| 10 |
|
| 11 |
using namespace KODI::WINDOWING::LINUX; |
| 12 |
|
| 13 |
CWinSystemEGL::CWinSystemEGL(EGLenum platform, std::string const& platformExtension) |
| 14 |
: m_eglContext{platform, platformExtension} |
| 15 |
{ |
| 16 |
} |
| 17 |
|
| 18 |
EGLDisplay CWinSystemEGL::GetEGLDisplay() const |
| 19 |
{ |
| 20 |
return m_eglContext.GetEGLDisplay(); |
| 21 |
} |
| 22 |
|
| 23 |
EGLSurface CWinSystemEGL::GetEGLSurface() const |
| 24 |
{ |
| 25 |
return m_eglContext.GetEGLSurface(); |
| 26 |
} |
| 27 |
|
| 28 |
EGLContext CWinSystemEGL::GetEGLContext() const |
| 29 |
{ |
| 30 |
return m_eglContext.GetEGLContext(); |
| 31 |
} |
| 32 |
|
| 33 |
EGLConfig CWinSystemEGL::GetEGLConfig() const |
| 34 |
{ |
| 35 |
return m_eglContext.GetEGLConfig(); |
| 36 |
} |