src/video/SDL_egl_c.h
changeset 11175 cbc6a8a5b701
parent 10740 bb53965b659d
child 11677 aed6a9ff3c99
     1.1 --- a/src/video/SDL_egl_c.h	Mon Jul 31 13:49:22 2017 -0400
     1.2 +++ b/src/video/SDL_egl_c.h	Wed Aug 02 10:22:48 2017 -0700
     1.3 @@ -37,6 +37,12 @@
     1.4      int egl_swapinterval;
     1.5      
     1.6      EGLDisplay(EGLAPIENTRY *eglGetDisplay) (NativeDisplayType display);
     1.7 +    EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplay) (EGLenum platform,
     1.8 +                                void *native_display,
     1.9 +                                const EGLint *attrib_list);
    1.10 +    EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplayEXT) (EGLenum platform,
    1.11 +                                void *native_display,
    1.12 +                                const EGLint *attrib_list);
    1.13      EGLBoolean(EGLAPIENTRY *eglInitialize) (EGLDisplay dpy, EGLint * major,
    1.14                                  EGLint * minor);
    1.15      EGLBoolean(EGLAPIENTRY  *eglTerminate) (EGLDisplay dpy);
    1.16 @@ -85,7 +91,10 @@
    1.17  
    1.18  /* OpenGLES functions */
    1.19  extern int SDL_EGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
    1.20 -extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display);
    1.21 +/* SDL_EGL_LoadLibrary can get a display for a specific platform (EGL_PLATFORM_*)
    1.22 + * or, if 0 is passed, let the implementation decide.
    1.23 + */
    1.24 +extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display, EGLenum platform);
    1.25  extern void *SDL_EGL_GetProcAddress(_THIS, const char *proc);
    1.26  extern void SDL_EGL_UnloadLibrary(_THIS);
    1.27  extern int SDL_EGL_ChooseConfig(_THIS);