21#include "../../SDL_internal.h"
23#if SDL_VIDEO_DRIVER_X11 && SDL_VIDEO_OPENGL_EGL
32X11_GLES_LoadLibrary(
_THIS,
const char *
path)
38 #if SDL_VIDEO_OPENGL_GLX
39 X11_GLES_UnloadLibrary(
_this);
51 return SDL_SetError(
"SDL not configured with OpenGL/GLX support");
59X11_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);
104SDL_EGL_SwapWindow_impl(X11)
105SDL_EGL_MakeCurrent_impl(X11)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei const GLchar *const * path
static SDL_VideoDevice * _this
void * SDL_GLContext
An opaque handle to an OpenGL context.
@ SDL_GL_CONTEXT_PROFILE_ES
#define EGL_NATIVE_VISUAL_ID
EGLSurface EGLNativeWindowType * window
struct wl_display * display
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_SetSwapInterval)(_THIS, int interval)
void(* GL_UnloadLibrary)(_THIS)
int(* GL_GetSwapInterval)(_THIS)
int(* GL_LoadLibrary)(_THIS, const char *path)
int(* GL_SwapWindow)(_THIS, SDL_Window *window)
struct SDL_VideoDevice::@262 gl_config
void *(* GL_GetProcAddress)(_THIS, const char *proc)
struct SDL_VideoData * videodata
The type used to identify a window.
static screen_context_t context