23 #ifndef _SDL_winrtopengles_h
24 #define _SDL_winrtopengles_h
26 #if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
28 #include "../SDL_sysvideo.h"
29 #include "../SDL_egl_c.h"
32 #define WINRT_GLES_GetAttribute SDL_EGL_GetAttribute
33 #define WINRT_GLES_GetProcAddress SDL_EGL_GetProcAddress
34 #define WINRT_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
35 #define WINRT_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
36 #define WINRT_GLES_DeleteContext SDL_EGL_DeleteContext
38 extern int WINRT_GLES_LoadLibrary(
_THIS,
const char *
path);
39 extern void WINRT_GLES_UnloadLibrary(
_THIS);
50 typedef Microsoft::WRL::ComPtr<IUnknown> WINRT_EGLNativeWindowType_Old;
55 typedef EGLDisplay (EGLAPIENTRY *eglGetDisplay_Old_Function)(WINRT_EGLNativeWindowType_Old);
56 typedef EGLSurface (EGLAPIENTRY *eglCreateWindowSurface_Old_Function)(EGLDisplay, EGLConfig, WINRT_EGLNativeWindowType_Old,
const EGLint *);
57 typedef HRESULT (EGLAPIENTRY *CreateWinrtEglWindow_Old_Function)(Microsoft::WRL::ComPtr<IUnknown>,
int, IUnknown **
result);
64 typedef EGLDisplay (EGLAPIENTRY *eglGetPlatformDisplayEXT_Function)(EGLenum,
void *,
const EGLint *);
void * SDL_GLContext
An opaque handle to an OpenGL context.
HRESULT(WINAPI *GetDpiForMonitor)(HMONITOR hmonitor
The type used to identify a window.
GLsizei const GLchar *const * path