| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | */ |
| | | #include "../../SDL_internal.h" |
| | | |
| | | #ifndef _SDL_windowsopengl_h |
| | | #define _SDL_windowsopengl_h |
| | | #ifndef SDL_windowsopengl_h_ |
| | | #define SDL_windowsopengl_h_ |
| | | |
| | | #if SDL_VIDEO_OPENGL_WGL |
| | | |
| | |
| | | { |
| | | SDL_bool HAS_WGL_ARB_pixel_format; |
| | | SDL_bool HAS_WGL_EXT_swap_control_tear; |
| | | SDL_bool HAS_WGL_EXT_create_context_es2_profile; |
| | | SDL_bool HAS_WGL_ARB_context_flush_control; |
| | | SDL_bool HAS_WGL_ARB_create_context_robustness; |
| | | SDL_bool HAS_WGL_ARB_create_context_no_error; |
| | | |
| | | void *(WINAPI * wglGetProcAddress) (const char *proc); |
| | | /* Max version of OpenGL ES context that can be created if the |
| | | implementation supports WGL_EXT_create_context_es2_profile. |
| | | major = minor = 0 when unsupported. |
| | | */ |
| | | struct { |
| | | int major; |
| | | int minor; |
| | | } es_profile_max_supported_version; |
| | | |
| | | void *(WINAPI * wglGetProcAddress) (const char *proc); |
| | | HGLRC(WINAPI * wglCreateContext) (HDC hdc); |
| | | BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc); |
| | | BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc); |
| | |
| | | extern int WIN_GL_LoadLibrary(_THIS, const char *path); |
| | | extern void *WIN_GL_GetProcAddress(_THIS, const char *proc); |
| | | extern void WIN_GL_UnloadLibrary(_THIS); |
| | | extern SDL_bool WIN_GL_UseEGL(_THIS); |
| | | extern int WIN_GL_SetupWindow(_THIS, SDL_Window * window); |
| | | extern SDL_GLContext WIN_GL_CreateContext(_THIS, SDL_Window * window); |
| | | extern int WIN_GL_MakeCurrent(_THIS, SDL_Window * window, |
| | | SDL_GLContext context); |
| | | extern int WIN_GL_SetSwapInterval(_THIS, int interval); |
| | | extern int WIN_GL_GetSwapInterval(_THIS); |
| | | extern void WIN_GL_SwapWindow(_THIS, SDL_Window * window); |
| | | extern int WIN_GL_SwapWindow(_THIS, SDL_Window * window); |
| | | extern void WIN_GL_DeleteContext(_THIS, SDL_GLContext context); |
| | | extern void WIN_GL_InitExtensions(_THIS); |
| | | extern SDL_bool WIN_GL_SetPixelFormatFrom(_THIS, SDL_Window * fromWindow, SDL_Window * toWindow); |
| | |
| | | |
| | | #endif /* SDL_VIDEO_OPENGL_WGL */ |
| | | |
| | | #endif /* _SDL_windowsopengl_h */ |
| | | #endif /* SDL_windowsopengl_h_ */ |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |