Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_WINDOWS && SDL_VIDEO_OPENGL_EGL
33 WIN_GLES_LoadLibrary(
_THIS,
const char *
path) {
37 #if SDL_VIDEO_OPENGL_WGL
38 WIN_GLES_UnloadLibrary(
_this);
50 return SDL_SetError(
"SDL not configured with OpenGL/WGL support");
70 WIN_GLES_UnloadLibrary(
_this);
81 if (WIN_GL_LoadLibrary(
_this,
NULL) != 0) {
97 WIN_GLES_UnloadLibrary(
_this);
100 SDL_EGL_SwapWindow_impl(WIN)
101 SDL_EGL_MakeCurrent_impl(WIN)
114 SDL_EGL_UnloadLibrary(
_this);
123 return SDL_SetError(
"Could not create GLES window surface");
126 return WIN_GLES_MakeCurrent(
_this, current_win, current_ctx);
#define EGL_DEFAULT_DISPLAY
GLsizei const GLchar *const * path
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
The type used to identify a window.
struct SDL_VideoDevice::@263 gl_config
static screen_context_t context
static SDL_VideoDevice * _this
EGLSurface EGLNativeWindowType * window
@ SDL_GL_CONTEXT_PROFILE_ES
#define SDL_GL_GetCurrentContext
int(* GL_SetSwapInterval)(_THIS, int interval)
void * SDL_GLContext
An opaque handle to an OpenGL context.
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
int(* GL_LoadLibrary)(_THIS, const char *path)
#define SDL_GL_GetCurrentWindow
void(* GL_UnloadLibrary)(_THIS)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_GetSwapInterval)(_THIS)
int(* GL_SwapWindow)(_THIS, SDL_Window *window)
#define SDL_VIDEO_OPENGL_WGL
void *(* GL_GetProcAddress)(_THIS, const char *proc)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)