src/video/windows/SDL_windowsopengles.h
author Gabriel Jacobo <gabomdq@gmail.com>
Fri, 22 Nov 2013 13:24:53 -0300
changeset 8021 f96e12e0ade9
child 8026 27a998fdc771
permissions -rw-r--r--
OpenGL ES support for Windows
gabomdq@8021
     1
/*
gabomdq@8021
     2
Simple DirectMedia Layer
gabomdq@8021
     3
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
gabomdq@8021
     4
gabomdq@8021
     5
This software is provided 'as-is', without any express or implied
gabomdq@8021
     6
warranty.  In no event will the authors be held liable for any damages
gabomdq@8021
     7
arising from the use of this software.
gabomdq@8021
     8
gabomdq@8021
     9
Permission is granted to anyone to use this software for any purpose,
gabomdq@8021
    10
including commercial applications, and to alter it and redistribute it
gabomdq@8021
    11
freely, subject to the following restrictions:
gabomdq@8021
    12
gabomdq@8021
    13
1. The origin of this software must not be misrepresented; you must not
gabomdq@8021
    14
claim that you wrote the original software. If you use this software
gabomdq@8021
    15
in a product, an acknowledgment in the product documentation would be
gabomdq@8021
    16
appreciated but is not required.
gabomdq@8021
    17
2. Altered source versions must be plainly marked as such, and must not be
gabomdq@8021
    18
misrepresented as being the original software.
gabomdq@8021
    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: */