~bregma/mir/docs-use-sphinx

« back to all changes in this revision

Viewing changes to playground/mir_egl_platform_shim.h

  • Committer: Stephen M. Webb
  • Date: 2017-01-05 14:21:43 UTC
  • mfrom: (3665.1.241 development-branch)
  • Revision ID: stephen.webb@canonical.com-20170105142143-xbmxkuvxb6gejs0n
synch with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2016 Canonical Ltd.
 
3
 *
 
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.
 
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 General Public License for more details.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Author: Kevin DuBois <kevin.dubois@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_
 
20
#define MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_
 
21
 
 
22
#include <GLES2/gl2.h>
 
23
#include <GLES2/gl2ext.h>
 
24
#include <EGL/egl.h>
 
25
#include <EGL/eglext.h>
 
26
#include "mir_toolkit/mir_render_surface.h"
 
27
 
 
28
//Note that these have the same signatures as the proper EGL functions,
 
29
//and use our intended EGLNativeDisplayType and EGLNativeWindowType.
 
30
 
 
31
EGLDisplay future_driver_eglGetDisplay(MirConnection*);
 
32
 
 
33
EGLBoolean future_driver_eglTerminate(EGLDisplay);
 
34
 
 
35
EGLSurface future_driver_eglCreateWindowSurface(
 
36
    EGLDisplay display, EGLConfig config, MirRenderSurface* surface, const EGLint *);
 
37
 
 
38
EGLBoolean future_driver_eglSwapBuffers(EGLDisplay display, EGLSurface surface);
 
39
 
 
40
EGLImageKHR future_driver_eglCreateImageKHR(
 
41
    EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
 
42
 
 
43
EGLBoolean future_driver_eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
 
44
 
 
45
void future_driver_glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
 
46
 
 
47
#endif /* MIR_PLAYGROUND_MIR_EGL_PLATFORM_SHIM_H_*/