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