src/video/windows/SDL_windowsopengles.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 18 May 2018 13:09:30 -0700
changeset 11983 3a50eb90e4b2
parent 11811 5d94cb6b24d3
child 12503 806492103856
permissions -rw-r--r--
Merged latest changes from Steam Link app
gabomdq@8021
     1
/*
philipp@8026
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
gabomdq@8021
     4
philipp@8026
     5
  This software is provided 'as-is', without any express or implied
philipp@8026
     6
  warranty.  In no event will the authors be held liable for any damages
philipp@8026
     7
  arising from the use of this software.
gabomdq@8021
     8
philipp@8026
     9
  Permission is granted to anyone to use this software for any purpose,
philipp@8026
    10
  including commercial applications, and to alter it and redistribute it
philipp@8026
    11
  freely, subject to the following restrictions:
gabomdq@8021
    12
philipp@8026
    13
  1. The origin of this software must not be misrepresented; you must not
philipp@8026
    14
     claim that you wrote the original software. If you use this software
philipp@8026
    15
     in a product, an acknowledgment in the product documentation would be
philipp@8026
    16
     appreciated but is not required.
philipp@8026
    17
  2. Altered source versions must be plainly marked as such, and must not be
philipp@8026
    18
     misrepresented as being the original software.
philipp@8026
    19
  3. This notice may not be removed or altered from any source distribution.
gabomdq@8021
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
gabomdq@8021
    22
slouken@11382
    23
#ifndef SDL_winopengles_h_
slouken@11382
    24
#define SDL_winopengles_h_
gabomdq@8021
    25
gabomdq@8021
    26
#if SDL_VIDEO_OPENGL_EGL
gabomdq@8021
    27
gabomdq@8021
    28
#include "../SDL_sysvideo.h"
gabomdq@8021
    29
#include "../SDL_egl_c.h"
gabomdq@8021
    30
gabomdq@8021
    31
/* OpenGLES functions */
gabomdq@8021
    32
#define WIN_GLES_GetAttribute SDL_EGL_GetAttribute
gabomdq@8021
    33
#define WIN_GLES_GetProcAddress SDL_EGL_GetProcAddress
gabomdq@8021
    34
#define WIN_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
gabomdq@8021
    35
#define WIN_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
slouken@10800
    36
#define WIN_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
gabomdq@8021
    37
gabomdq@8021
    38
extern int WIN_GLES_LoadLibrary(_THIS, const char *path);
gabomdq@8021
    39
extern SDL_GLContext WIN_GLES_CreateContext(_THIS, SDL_Window * window);
slouken@10695
    40
extern int WIN_GLES_SwapWindow(_THIS, SDL_Window * window);
gabomdq@8021
    41
extern int WIN_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
gabomdq@8021
    42
extern void WIN_GLES_DeleteContext(_THIS, SDL_GLContext context);
gabomdq@8021
    43
extern int WIN_GLES_SetupWindow(_THIS, SDL_Window * window);
gabomdq@8021
    44
gabomdq@8021
    45
#endif /* SDL_VIDEO_OPENGL_EGL */
gabomdq@8021
    46
slouken@11382
    47
#endif /* SDL_winopengles_h_ */
gabomdq@8021
    48
gabomdq@8021
    49
/* vi: set ts=4 sw=4 expandtab: */