21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_X11 && SDL_VIDEO_OPENGL_EGL 32 X11_GLES_LoadLibrary(
_THIS,
const char *
path)
38 #if SDL_VIDEO_OPENGL_GLX 39 X11_GLES_UnloadLibrary(
_this);
49 return X11_GL_LoadLibrary(
_this, path);
51 return SDL_SetError(
"SDL not configured with OpenGL/GLX support");
59 X11_GLES_GetVisual(
_THIS, Display * display,
int screen)
62 XVisualInfo *egl_visualinfo =
NULL;
67 if (!
_this->egl_data) {
72 if (
_this->egl_data->eglGetConfigAttrib(
_this->egl_data->egl_display,
73 _this->egl_data->egl_config,
78 egl_visualinfo = X11_XGetVisualInfo(display,
83 vi_in.visualid = visual_id;
84 egl_visualinfo = X11_XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &vi_in, &out_count);
87 return egl_visualinfo;
97 X11_XSync(display, False);
99 X11_XSync(display, False);
104 SDL_EGL_SwapWindow_impl(X11)
105 SDL_EGL_MakeCurrent_impl(X11)
struct wl_display * display
int(* GL_SetSwapInterval)(_THIS, int interval)
static screen_context_t context
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int(* GL_LoadLibrary)(_THIS, const char *path)
#define EGL_NATIVE_VISUAL_ID
static SDL_VideoDevice * _this
void * SDL_GLContext
An opaque handle to an OpenGL context.
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
struct SDL_VideoData * videodata
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
void(* GL_UnloadLibrary)(_THIS)
EGLSurface EGLNativeWindowType * window
int(* GL_SwapWindow)(_THIS, SDL_Window *window)
The type used to identify a window.
GLsizei const GLchar *const * path
struct SDL_VideoDevice::@34 gl_config
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
int(* GL_GetSwapInterval)(_THIS)
void *(* GL_GetProcAddress)(_THIS, const char *proc)