src/video/windows/SDL_windowsopengles.h
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 23 Nov 2013 18:34:27 +0100
changeset 8026 27a998fdc771
parent 8021 f96e12e0ade9
child 8093 b43765095a6f
permissions -rw-r--r--
Fixed spaces in license comment.
gabomdq@8021
     1
/*
philipp@8026
     2
  Simple DirectMedia Layer
philipp@8026
     3
  Copyright (C) 1997-2013 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
*/
gabomdq@8021
    21
#include "SDL_config.h"
gabomdq@8021
    22
gabomdq@8021
    23
#ifndef _SDL_winopengles_h
gabomdq@8021
    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
gabomdq@8021
    36
/* See the WIN_GLES_GetSwapInterval implementation to see why this is commented out */
gabomdq@8021
    37
/*#define WIN_GLES_SetSwapInterval SDL_EGL_SetSwapInterval*/
gabomdq@8021
    38
extern int WIN_GLES_SetSwapInterval(_THIS, int interval);
gabomdq@8021
    39
gabomdq@8021
    40
extern int WIN_GLES_LoadLibrary(_THIS, const char *path);
gabomdq@8021
    41
extern SDL_GLContext WIN_GLES_CreateContext(_THIS, SDL_Window * window);
gabomdq@8021
    42
extern void WIN_GLES_SwapWindow(_THIS, SDL_Window * window);
gabomdq@8021
    43
extern int WIN_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
gabomdq@8021
    44
extern void WIN_GLES_DeleteContext(_THIS, SDL_GLContext context);
gabomdq@8021
    45
extern int WIN_GLES_SetupWindow(_THIS, SDL_Window * window);
gabomdq@8021
    46
gabomdq@8021
    47
#endif /* SDL_VIDEO_OPENGL_EGL */
gabomdq@8021
    48
gabomdq@8021
    49
#endif /* _SDL_winopengles_h */
gabomdq@8021
    50
gabomdq@8021
    51
/* vi: set ts=4 sw=4 expandtab: */