src/video/winrt/SDL_winrtopengles.cpp
changeset 8582 c3e9a2b93517
parent 8573 310a523cd32d
child 8609 d59f0f12bf07
     1.1 --- a/src/video/winrt/SDL_winrtopengles.cpp	Tue Mar 04 19:49:11 2014 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtopengles.cpp	Sun Mar 09 11:06:11 2014 -0700
     1.3 @@ -1,50 +1,50 @@
     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 -// TODO: WinRT, make this file compile via C code
    1.27 -
    1.28 -#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
    1.29 -
    1.30 -/* EGL implementation of SDL OpenGL support */
    1.31 -
    1.32 -#include "SDL_winrtvideo_cpp.h"
    1.33 -extern "C" {
    1.34 -#include "SDL_winrtopengles.h"
    1.35 -}
    1.36 -
    1.37 -#define EGL_D3D11_ONLY_DISPLAY_ANGLE ((NativeDisplayType) -3)
    1.38 -
    1.39 -extern "C" int
    1.40 -WINRT_GLES_LoadLibrary(_THIS, const char *path) {
    1.41 -    return SDL_EGL_LoadLibrary(_this, path, EGL_D3D11_ONLY_DISPLAY_ANGLE);
    1.42 -}
    1.43 -
    1.44 -extern "C" {
    1.45 -SDL_EGL_CreateContext_impl(WINRT)
    1.46 -SDL_EGL_SwapWindow_impl(WINRT)
    1.47 -SDL_EGL_MakeCurrent_impl(WINRT)
    1.48 -}
    1.49 -
    1.50 -#endif /* SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL */
    1.51 -
    1.52 -/* vi: set ts=4 sw=4 expandtab: */
    1.53 -
    1.54 +/*
    1.55 +  Simple DirectMedia Layer
    1.56 +  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
    1.57 +
    1.58 +  This software is provided 'as-is', without any express or implied
    1.59 +  warranty.  In no event will the authors be held liable for any damages
    1.60 +  arising from the use of this software.
    1.61 +
    1.62 +  Permission is granted to anyone to use this software for any purpose,
    1.63 +  including commercial applications, and to alter it and redistribute it
    1.64 +  freely, subject to the following restrictions:
    1.65 +
    1.66 +  1. The origin of this software must not be misrepresented; you must not
    1.67 +     claim that you wrote the original software. If you use this software
    1.68 +     in a product, an acknowledgment in the product documentation would be
    1.69 +     appreciated but is not required.
    1.70 +  2. Altered source versions must be plainly marked as such, and must not be
    1.71 +     misrepresented as being the original software.
    1.72 +  3. This notice may not be removed or altered from any source distribution.
    1.73 +*/
    1.74 +#include "SDL_config.h"
    1.75 +
    1.76 +// TODO: WinRT, make this file compile via C code
    1.77 +
    1.78 +#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
    1.79 +
    1.80 +/* EGL implementation of SDL OpenGL support */
    1.81 +
    1.82 +#include "SDL_winrtvideo_cpp.h"
    1.83 +extern "C" {
    1.84 +#include "SDL_winrtopengles.h"
    1.85 +}
    1.86 +
    1.87 +#define EGL_D3D11_ONLY_DISPLAY_ANGLE ((NativeDisplayType) -3)
    1.88 +
    1.89 +extern "C" int
    1.90 +WINRT_GLES_LoadLibrary(_THIS, const char *path) {
    1.91 +    return SDL_EGL_LoadLibrary(_this, path, EGL_D3D11_ONLY_DISPLAY_ANGLE);
    1.92 +}
    1.93 +
    1.94 +extern "C" {
    1.95 +SDL_EGL_CreateContext_impl(WINRT)
    1.96 +SDL_EGL_SwapWindow_impl(WINRT)
    1.97 +SDL_EGL_MakeCurrent_impl(WINRT)
    1.98 +}
    1.99 +
   1.100 +#endif /* SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL */
   1.101 +
   1.102 +/* vi: set ts=4 sw=4 expandtab: */
   1.103 +