KWin
Loading...
Searching...
No Matches
eglhelpers.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <epoxy/egl.h>
13
14#include <QSurfaceFormat>
15
16namespace KWin
17{
18
19class EglDisplay;
20
21namespace QPA
22{
23
24bool isOpenGLES();
25
26EGLConfig configFromFormat(EglDisplay *display, const QSurfaceFormat &surfaceFormat, EGLint surfaceType = 0);
27QSurfaceFormat formatFromConfig(EglDisplay *display, EGLConfig config);
28
29} // namespace QPA
30} // namespace KWin
QSurfaceFormat formatFromConfig(EglDisplay *display, EGLConfig config)
EGLConfig configFromFormat(EglDisplay *display, const QSurfaceFormat &surfaceFormat, EGLint surfaceType)
bool isOpenGLES()