src/video/winrt/SDL_winrtopengles.h
changeset 8582 c3e9a2b93517
parent 8545 7cf4f8916997
child 8615 097646deaef2
     1.1 --- a/src/video/winrt/SDL_winrtopengles.h	Tue Mar 04 19:49:11 2014 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtopengles.h	Sun Mar 09 11:06:11 2014 -0700
     1.3 @@ -1,48 +1,48 @@
     1.4 -/*
     1.5 -  Simple DirectMedia Layer
     1.6 -  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     1.7 -
     1.8 -  This software is provided 'as-is', without any express or implied
     1.9 -  warranty.  In no event will the authors be held liable for any damages
    1.10 -  arising from the use of this software.
    1.11 -
    1.12 -  Permission is granted to anyone to use this software for any purpose,
    1.13 -  including commercial applications, and to alter it and redistribute it
    1.14 -  freely, subject to the following restrictions:
    1.15 -
    1.16 -  1. The origin of this software must not be misrepresented; you must not
    1.17 -     claim that you wrote the original software. If you use this software
    1.18 -     in a product, an acknowledgment in the product documentation would be
    1.19 -     appreciated but is not required.
    1.20 -  2. Altered source versions must be plainly marked as such, and must not be
    1.21 -     misrepresented as being the original software.
    1.22 -  3. This notice may not be removed or altered from any source distribution.
    1.23 -*/
    1.24 -#include "SDL_config.h"
    1.25 -
    1.26 -#ifndef _SDL_winrtopengles_h
    1.27 -#define _SDL_winrtopengles_h
    1.28 -
    1.29 -#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
    1.30 -
    1.31 -#include "../SDL_sysvideo.h"
    1.32 -#include "../SDL_egl_c.h"
    1.33 -
    1.34 -/* OpenGLES functions */
    1.35 -#define WINRT_GLES_GetAttribute SDL_EGL_GetAttribute
    1.36 -#define WINRT_GLES_GetProcAddress SDL_EGL_GetProcAddress
    1.37 -#define WINRT_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
    1.38 -#define WINRT_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
    1.39 -#define WINRT_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
    1.40 -#define WINRT_GLES_DeleteContext SDL_EGL_DeleteContext
    1.41 -
    1.42 -extern int WINRT_GLES_LoadLibrary(_THIS, const char *path);
    1.43 -extern SDL_GLContext WINRT_GLES_CreateContext(_THIS, SDL_Window * window);
    1.44 -extern void WINRT_GLES_SwapWindow(_THIS, SDL_Window * window);
    1.45 -extern int WINRT_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
    1.46 -
    1.47 -#endif /* SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL */
    1.48 -
    1.49 -#endif /* _SDL_winrtopengles_h */
    1.50 -
    1.51 -/* vi: set ts=4 sw=4 expandtab: */
    1.52 +/*
    1.53 +  Simple DirectMedia Layer
    1.54 +  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
    1.55 +
    1.56 +  This software is provided 'as-is', without any express or implied
    1.57 +  warranty.  In no event will the authors be held liable for any damages
    1.58 +  arising from the use of this software.
    1.59 +
    1.60 +  Permission is granted to anyone to use this software for any purpose,
    1.61 +  including commercial applications, and to alter it and redistribute it
    1.62 +  freely, subject to the following restrictions:
    1.63 +
    1.64 +  1. The origin of this software must not be misrepresented; you must not
    1.65 +     claim that you wrote the original software. If you use this software
    1.66 +     in a product, an acknowledgment in the product documentation would be
    1.67 +     appreciated but is not required.
    1.68 +  2. Altered source versions must be plainly marked as such, and must not be
    1.69 +     misrepresented as being the original software.
    1.70 +  3. This notice may not be removed or altered from any source distribution.
    1.71 +*/
    1.72 +#include "SDL_config.h"
    1.73 +
    1.74 +#ifndef _SDL_winrtopengles_h
    1.75 +#define _SDL_winrtopengles_h
    1.76 +
    1.77 +#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
    1.78 +
    1.79 +#include "../SDL_sysvideo.h"
    1.80 +#include "../SDL_egl_c.h"
    1.81 +
    1.82 +/* OpenGLES functions */
    1.83 +#define WINRT_GLES_GetAttribute SDL_EGL_GetAttribute
    1.84 +#define WINRT_GLES_GetProcAddress SDL_EGL_GetProcAddress
    1.85 +#define WINRT_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
    1.86 +#define WINRT_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
    1.87 +#define WINRT_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
    1.88 +#define WINRT_GLES_DeleteContext SDL_EGL_DeleteContext
    1.89 +
    1.90 +extern int WINRT_GLES_LoadLibrary(_THIS, const char *path);
    1.91 +extern SDL_GLContext WINRT_GLES_CreateContext(_THIS, SDL_Window * window);
    1.92 +extern void WINRT_GLES_SwapWindow(_THIS, SDL_Window * window);
    1.93 +extern int WINRT_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
    1.94 +
    1.95 +#endif /* SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL */
    1.96 +
    1.97 +#endif /* _SDL_winrtopengles_h */
    1.98 +
    1.99 +/* vi: set ts=4 sw=4 expandtab: */