SDL  2.0
SDL_kmsdrmopengles.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
4  Atomic KMSDRM backend by Manuel Alfayate Corchete <redwindwanderer@gmail.com>
5 
6  This software is provided 'as-is', without any express or implied
7  warranty. In no event will the authors be held liable for any damages
8  arising from the use of this software.
9 
10  Permission is granted to anyone to use this software for any purpose,
11  including commercial applications, and to alter it and redistribute it
12  freely, subject to the following restrictions:
13 
14  1. The origin of this software must not be misrepresented; you must not
15  claim that you wrote the original software. If you use this software
16  in a product, an acknowledgment in the product documentation would be
17  appreciated but is not required.
18  2. Altered source versions must be plainly marked as such, and must not be
19  misrepresented as being the original software.
20  3. This notice may not be removed or altered from any source distribution.
21 */
22 #include "../../SDL_internal.h"
23 
24 #ifndef SDL_kmsdrmopengles_h_
25 #define SDL_kmsdrmopengles_h_
26 
27 #if SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL
28 
29 #include "../SDL_sysvideo.h"
30 #include "../SDL_egl_c.h"
31 
32 /* OpenGLES functions */
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
37 
38 extern void KMSDRM_GLES_DefaultProfileConfig(_THIS, int *mask, int *major, int *minor);
39 extern int KMSDRM_GLES_SetSwapInterval(_THIS, int interval);
40 extern int KMSDRM_GLES_LoadLibrary(_THIS, const char *path);
44 
45 #endif /* SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL */
46 
47 #endif /* SDL_kmsdrmopengles_h_ */
48 
49 /* vi: set ts=4 sw=4 expandtab: */
#define _THIS
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
GLenum GLint GLuint mask
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:195
EGLSurface EGLNativeWindowType * window
Definition: eglext.h:1025
The type used to identify a window.
Definition: SDL_sysvideo.h:75
static screen_context_t context
Definition: video.c:25