21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_WAYLAND && SDL_VIDEO_OPENGL_EGL 38 ret = SDL_EGL_LoadLibrary(
_this, path, (NativeDisplayType) data->
display);
41 WAYLAND_wl_display_flush(data->
display);
70 if (window && context) {
85 SDL_EGL_DeleteContext(
_this, context);
struct wl_display * display
static SDL_Window * window
void Wayland_GLES_DeleteContext(_THIS, SDL_GLContext context)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_GLContext Wayland_GLES_CreateContext(_THIS, SDL_Window *window)
static SDL_VideoDevice * _this
void * SDL_GLContext
An opaque handle to an OpenGL context.
int Wayland_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
void Wayland_PumpEvents(_THIS)
The type used to identify a window.
GLsizei const GLchar *const * path
int Wayland_GLES_LoadLibrary(_THIS, const char *path)
void Wayland_GLES_SwapWindow(_THIS, SDL_Window *window)