File indexing completed on 2024-11-10 04:57:05
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <epoxy/egl.h> 0013 0014 #include <QSurfaceFormat> 0015 0016 namespace KWin 0017 { 0018 0019 class EglDisplay; 0020 0021 namespace QPA 0022 { 0023 0024 bool isOpenGLES(); 0025 0026 EGLConfig configFromFormat(EglDisplay *display, const QSurfaceFormat &surfaceFormat, EGLint surfaceType = 0); 0027 QSurfaceFormat formatFromConfig(EglDisplay *display, EGLConfig config); 0028 0029 } // namespace QPA 0030 } // namespace KWin