Mir
egl_sync_extensions.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_EGL_SYNC_EXTENSIONS_H_
20 #define MIR_GRAPHICS_EGL_SYNC_EXTENSIONS_H_
21 
22 #ifndef GL_GLEXT_PROTOTYPES
23 #define GL_GLEXT_PROTOTYPES
24 #endif
25 #define EGL_EGLEXT_PROTOTYPES
26 
27 //Xenial egl has started needing a header (android/native_window.h)
28 //That we don't have in the android-headers package yet.
29 #include <EGL/egl.h>
30 #include <EGL/eglext.h>
31 #include <GLES2/gl2.h>
32 #include <GLES2/gl2ext.h>
33 
34 namespace mir
35 {
36 namespace graphics
37 {
38 
40 {
42  PFNEGLCREATESYNCKHRPROC const eglCreateSyncKHR;
43  PFNEGLDESTROYIMAGEKHRPROC const eglDestroySyncKHR;
44  PFNEGLCLIENTWAITSYNCKHRPROC const eglClientWaitSyncKHR;
45 };
46 
47 }
48 }
49 
50 #endif /* MIR_GRAPHICS_EGL_SYNC_EXTENSIONS_H_ */
All things Mir.
Definition: atomic_callback.h:25
PFNEGLDESTROYIMAGEKHRPROC const eglDestroySyncKHR
Definition: egl_sync_extensions.h:43
Definition: egl_sync_extensions.h:39
PFNEGLCREATESYNCKHRPROC const eglCreateSyncKHR
Definition: egl_sync_extensions.h:42
PFNEGLCLIENTWAITSYNCKHRPROC const eglClientWaitSyncKHR
Definition: egl_sync_extensions.h:44
EGLSyncExtensions()
Definition: egl_sync_extensions.cpp:25

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016