Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/eglhelpers.h
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | 20 | | |||
21 | #pragma once | 21 | #pragma once | ||
22 | 22 | | |||
23 | #define MESA_EGL_NO_X11_HEADERS | | |||
24 | #include <epoxy/egl.h> | 23 | #include <epoxy/egl.h> | ||
25 | #include "fixqopengl.h" | 24 | #include "fixqopengl.h" | ||
25 | #include <fixx11h.h> | ||||
26 | 26 | | |||
27 | #include <QSurfaceFormat> | 27 | #include <QSurfaceFormat> | ||
28 | 28 | | |||
29 | namespace KWin | 29 | namespace KWin | ||
30 | { | 30 | { | ||
31 | namespace QPA | 31 | namespace QPA | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | bool isOpenGLES(); | 34 | bool isOpenGLES(); | ||
35 | 35 | | |||
36 | EGLConfig configFromFormat(EGLDisplay display, const QSurfaceFormat &surfaceFormat, EGLint surfaceType = 0); | 36 | EGLConfig configFromFormat(EGLDisplay display, const QSurfaceFormat &surfaceFormat, EGLint surfaceType = 0); | ||
37 | QSurfaceFormat formatFromConfig(EGLDisplay display, EGLConfig config); | 37 | QSurfaceFormat formatFromConfig(EGLDisplay display, EGLConfig config); | ||
38 | 38 | | |||
39 | } // namespace QPA | 39 | } // namespace QPA | ||
40 | } // namespace KWin | 40 | } // namespace KWin |