src/video/SDL_egl_c.h
changeset 10690 23a825f341e6
parent 10638 d11daa346140
child 10737 3406a0f8b041
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
    94 extern void SDL_EGL_DestroySurface(_THIS, EGLSurface egl_surface);
    94 extern void SDL_EGL_DestroySurface(_THIS, EGLSurface egl_surface);
    95 
    95 
    96 /* These need to be wrapped to get the surface for the window by the platform GLES implementation */
    96 /* These need to be wrapped to get the surface for the window by the platform GLES implementation */
    97 extern SDL_GLContext SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface);
    97 extern SDL_GLContext SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface);
    98 extern int SDL_EGL_MakeCurrent(_THIS, EGLSurface egl_surface, SDL_GLContext context);
    98 extern int SDL_EGL_MakeCurrent(_THIS, EGLSurface egl_surface, SDL_GLContext context);
    99 extern void SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
    99 extern int SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
   100 
   100 
   101 /* A few of useful macros */
   101 /* A few of useful macros */
   102 
   102 
   103 #define SDL_EGL_SwapWindow_impl(BACKEND) void \
   103 #define SDL_EGL_SwapWindow_impl(BACKEND) int \
   104 BACKEND ## _GLES_SwapWindow(_THIS, SDL_Window * window) \
   104 BACKEND ## _GLES_SwapWindow(_THIS, SDL_Window * window) \
   105 {\
   105 {\
   106     SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
   106     return SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
   107 }
   107 }
   108 
   108 
   109 #define SDL_EGL_MakeCurrent_impl(BACKEND) int \
   109 #define SDL_EGL_MakeCurrent_impl(BACKEND) int \
   110 BACKEND ## _GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) \
   110 BACKEND ## _GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) \
   111 {\
   111 {\