23 #if SDL_VIDEO_DRIVER_X11 && SDL_VIDEO_OPENGL_EGL
32 X11_GLES_LoadLibrary(
_THIS,
const char *
path) {
38 #if SDL_VIDEO_OPENGL_GLX
48 return X11_GL_LoadLibrary(
_this, path);
50 return SDL_SetError(
"SDL not configured with OpenGL/GLX support");
61 XVisualInfo *egl_visualinfo =
NULL;
66 if (!
_this->egl_data) {
71 if (
_this->egl_data->eglGetConfigAttrib(
_this->egl_data->egl_display,
72 _this->egl_data->egl_config,
76 vi_in.screen = screen;
77 egl_visualinfo = XGetVisualInfo(display,
81 vi_in.screen = screen;
82 vi_in.visualid = visual_id;
83 egl_visualinfo = XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &vi_in, &out_count);
86 return egl_visualinfo;
96 XSync(display, False);
98 XSync(display, False);
103 SDL_EGL_SwapWindow_impl(X11)
104 SDL_EGL_MakeCurrent_impl(X11)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
void * SDL_GLContext
An opaque handle to an OpenGL context.
GLsizei const GLchar *const * path
#define EGL_NATIVE_VISUAL_ID
int(* GL_SetSwapInterval)(_THIS, int interval)
static SDL_VideoDevice * _this
void(* GL_UnloadLibrary)(_THIS)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
struct SDL_VideoData * videodata
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
int(* GL_GetSwapInterval)(_THIS)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_LoadLibrary)(_THIS, const char *path)
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
struct SDL_VideoDevice::@87 gl_config
void *(* GL_GetProcAddress)(_THIS, const char *proc)