src/video/SDL_egl_c.h
changeset 11175 cbc6a8a5b701
parent 10740 bb53965b659d
child 11677 aed6a9ff3c99
equal deleted inserted replaced
11174:3767cdd2d64b 11175:cbc6a8a5b701
    35     EGLDisplay egl_display;
    35     EGLDisplay egl_display;
    36     EGLConfig egl_config;
    36     EGLConfig egl_config;
    37     int egl_swapinterval;
    37     int egl_swapinterval;
    38     
    38     
    39     EGLDisplay(EGLAPIENTRY *eglGetDisplay) (NativeDisplayType display);
    39     EGLDisplay(EGLAPIENTRY *eglGetDisplay) (NativeDisplayType display);
       
    40     EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplay) (EGLenum platform,
       
    41                                 void *native_display,
       
    42                                 const EGLint *attrib_list);
       
    43     EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplayEXT) (EGLenum platform,
       
    44                                 void *native_display,
       
    45                                 const EGLint *attrib_list);
    40     EGLBoolean(EGLAPIENTRY *eglInitialize) (EGLDisplay dpy, EGLint * major,
    46     EGLBoolean(EGLAPIENTRY *eglInitialize) (EGLDisplay dpy, EGLint * major,
    41                                 EGLint * minor);
    47                                 EGLint * minor);
    42     EGLBoolean(EGLAPIENTRY  *eglTerminate) (EGLDisplay dpy);
    48     EGLBoolean(EGLAPIENTRY  *eglTerminate) (EGLDisplay dpy);
    43     
    49     
    44     void *(EGLAPIENTRY *eglGetProcAddress) (const char * procName);
    50     void *(EGLAPIENTRY *eglGetProcAddress) (const char * procName);
    83 
    89 
    84 } SDL_EGL_VideoData;
    90 } SDL_EGL_VideoData;
    85 
    91 
    86 /* OpenGLES functions */
    92 /* OpenGLES functions */
    87 extern int SDL_EGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
    93 extern int SDL_EGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
    88 extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display);
    94 /* SDL_EGL_LoadLibrary can get a display for a specific platform (EGL_PLATFORM_*)
       
    95  * or, if 0 is passed, let the implementation decide.
       
    96  */
       
    97 extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display, EGLenum platform);
    89 extern void *SDL_EGL_GetProcAddress(_THIS, const char *proc);
    98 extern void *SDL_EGL_GetProcAddress(_THIS, const char *proc);
    90 extern void SDL_EGL_UnloadLibrary(_THIS);
    99 extern void SDL_EGL_UnloadLibrary(_THIS);
    91 extern int SDL_EGL_ChooseConfig(_THIS);
   100 extern int SDL_EGL_ChooseConfig(_THIS);
    92 extern int SDL_EGL_SetSwapInterval(_THIS, int interval);
   101 extern int SDL_EGL_SetSwapInterval(_THIS, int interval);
    93 extern int SDL_EGL_GetSwapInterval(_THIS);
   102 extern int SDL_EGL_GetSwapInterval(_THIS);