22 #include "../../SDL_internal.h"
24 #ifndef SDL_kmsdrmopengles_h_
25 #define SDL_kmsdrmopengles_h_
27 #if SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL
29 #include "../SDL_sysvideo.h"
30 #include "../SDL_egl_c.h"
33 #define KMSDRM_GLES_GetAttribute SDL_EGL_GetAttribute
34 #define KMSDRM_GLES_GetProcAddress SDL_EGL_GetProcAddress
35 #define KMSDRM_GLES_DeleteContext SDL_EGL_DeleteContext
36 #define KMSDRM_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
38 extern void KMSDRM_GLES_DefaultProfileConfig(
_THIS,
int *
mask,
int *major,
int *minor);
int KMSDRM_GLES_SetSwapInterval(_THIS, int interval)
int KMSDRM_GLES_LoadLibrary(_THIS, const char *path)
SDL_GLContext KMSDRM_GLES_CreateContext(_THIS, SDL_Window *window)
int KMSDRM_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
int KMSDRM_GLES_SwapWindow(_THIS, SDL_Window *window)
GLsizei const GLchar *const * path
void * SDL_GLContext
An opaque handle to an OpenGL context.
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
static screen_context_t context