sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

SDL_kmsdrmopengles.h (2046B)


      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);
     41 extern SDL_GLContext KMSDRM_GLES_CreateContext(_THIS, SDL_Window * window);
     42 extern int KMSDRM_GLES_SwapWindow(_THIS, SDL_Window * window);
     43 extern int KMSDRM_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
     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: */