2
* Copyright © 2016 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
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 General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Kevin DuBois <kevin.dubois@canonical.com>
19
#ifndef MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_
20
#define MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_
22
#include <GLES2/gl2.h>
23
#include <GLES2/gl2ext.h>
25
#include <EGL/eglext.h>
26
#include "mir_toolkit/mir_render_surface.h"
28
//Note that these have the same signatures as the proper EGL functions,
29
//and use our intended EGLNativeDisplayType and EGLNativeWindowType.
31
EGLDisplay future_driver_eglGetDisplay(MirConnection*);
33
EGLBoolean future_driver_eglTerminate(EGLDisplay);
35
EGLSurface future_driver_eglCreateWindowSurface(
36
EGLDisplay display, EGLConfig config, MirRenderSurface* surface, const EGLint *);
38
EGLBoolean future_driver_eglSwapBuffers(EGLDisplay display, EGLSurface surface);
40
EGLImageKHR future_driver_eglCreateImageKHR(
41
EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
43
EGLBoolean future_driver_eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
45
void future_driver_glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
47
#endif /* MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_*/