src/video/windows/SDL_windowsopengl.h
changeset 8021 f96e12e0ade9
parent 6885 700f1b25f77f
child 8093 b43765095a6f
equal deleted inserted replaced
8020:1e390ba95c43 8021:f96e12e0ade9
    27 
    27 
    28 struct SDL_GLDriverData
    28 struct SDL_GLDriverData
    29 {
    29 {
    30     SDL_bool HAS_WGL_ARB_pixel_format;
    30     SDL_bool HAS_WGL_ARB_pixel_format;
    31     SDL_bool HAS_WGL_EXT_swap_control_tear;
    31     SDL_bool HAS_WGL_EXT_swap_control_tear;
       
    32     SDL_bool HAS_WGL_EXT_create_context_es2_profile;
    32 
    33 
    33     void *(WINAPI * wglGetProcAddress) (const char *proc);
    34     void *(WINAPI * wglGetProcAddress) (const char *proc);
    34       HGLRC(WINAPI * wglCreateContext) (HDC hdc);
    35       HGLRC(WINAPI * wglCreateContext) (HDC hdc);
    35       BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
    36       BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
    36       BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
    37       BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
    60                               SDL_GLContext context);
    61                               SDL_GLContext context);
    61 extern int WIN_GL_SetSwapInterval(_THIS, int interval);
    62 extern int WIN_GL_SetSwapInterval(_THIS, int interval);
    62 extern int WIN_GL_GetSwapInterval(_THIS);
    63 extern int WIN_GL_GetSwapInterval(_THIS);
    63 extern void WIN_GL_SwapWindow(_THIS, SDL_Window * window);
    64 extern void WIN_GL_SwapWindow(_THIS, SDL_Window * window);
    64 extern void WIN_GL_DeleteContext(_THIS, SDL_GLContext context);
    65 extern void WIN_GL_DeleteContext(_THIS, SDL_GLContext context);
       
    66 extern void WIN_GL_InitExtensions(_THIS);
    65 
    67 
    66 #ifndef WGL_ARB_pixel_format
    68 #ifndef WGL_ARB_pixel_format
    67 #define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
    69 #define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
    68 #define WGL_DRAW_TO_WINDOW_ARB         0x2001
    70 #define WGL_DRAW_TO_WINDOW_ARB         0x2001
    69 #define WGL_DRAW_TO_BITMAP_ARB         0x2002
    71 #define WGL_DRAW_TO_BITMAP_ARB         0x2002