src/video/winrt/SDL_winrtopengles.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 13 Mar 2014 00:40:08 -0700
changeset 8615 097646deaef2
parent 8582 c3e9a2b93517
child 8663 308e74493106
permissions -rw-r--r--
Fixed the copyright date on files contributed by David Ludwig
slouken@8582
     1
/*
slouken@8582
     2
  Simple DirectMedia Layer
slouken@8615
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
slouken@8582
     4
slouken@8582
     5
  This software is provided 'as-is', without any express or implied
slouken@8582
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@8582
     7
  arising from the use of this software.
slouken@8582
     8
slouken@8582
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@8582
    10
  including commercial applications, and to alter it and redistribute it
slouken@8582
    11
  freely, subject to the following restrictions:
slouken@8582
    12
slouken@8582
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@8582
    14
     claim that you wrote the original software. If you use this software
slouken@8582
    15
     in a product, an acknowledgment in the product documentation would be
slouken@8582
    16
     appreciated but is not required.
slouken@8582
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@8582
    18
     misrepresented as being the original software.
slouken@8582
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@8582
    20
*/
slouken@8582
    21
#include "SDL_config.h"
slouken@8582
    22
slouken@8582
    23
#ifndef _SDL_winrtopengles_h
slouken@8582
    24
#define _SDL_winrtopengles_h
slouken@8582
    25
slouken@8582
    26
#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
slouken@8582
    27
slouken@8582
    28
#include "../SDL_sysvideo.h"
slouken@8582
    29
#include "../SDL_egl_c.h"
slouken@8582
    30
slouken@8582
    31
/* OpenGLES functions */
slouken@8582
    32
#define WINRT_GLES_GetAttribute SDL_EGL_GetAttribute
slouken@8582
    33
#define WINRT_GLES_GetProcAddress SDL_EGL_GetProcAddress
slouken@8582
    34
#define WINRT_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
slouken@8582
    35
#define WINRT_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
slouken@8582
    36
#define WINRT_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
slouken@8582
    37
#define WINRT_GLES_DeleteContext SDL_EGL_DeleteContext
slouken@8582
    38
slouken@8582
    39
extern int WINRT_GLES_LoadLibrary(_THIS, const char *path);
slouken@8582
    40
extern SDL_GLContext WINRT_GLES_CreateContext(_THIS, SDL_Window * window);
slouken@8582
    41
extern void WINRT_GLES_SwapWindow(_THIS, SDL_Window * window);
slouken@8582
    42
extern int WINRT_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
slouken@8582
    43
slouken@8582
    44
#endif /* SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL */
slouken@8582
    45
slouken@8582
    46
#endif /* _SDL_winrtopengles_h */
slouken@8582
    47
slouken@8582
    48
/* vi: set ts=4 sw=4 expandtab: */