Lines Matching refs:gl_data
115 _this->gl_data = (struct SDL_GLDriverData *) SDL_calloc(1, sizeof(struct SDL_GLDriverData)); in WIN_GL_LoadLibrary()
116 if (!_this->gl_data) { in WIN_GL_LoadLibrary()
122 _this->gl_data->wglGetProcAddress = (void *(WINAPI *) (const char *)) in WIN_GL_LoadLibrary()
124 _this->gl_data->wglCreateContext = (HGLRC(WINAPI *) (HDC)) in WIN_GL_LoadLibrary()
126 _this->gl_data->wglDeleteContext = (BOOL(WINAPI *) (HGLRC)) in WIN_GL_LoadLibrary()
128 _this->gl_data->wglMakeCurrent = (BOOL(WINAPI *) (HDC, HGLRC)) in WIN_GL_LoadLibrary()
130 _this->gl_data->wglShareLists = (BOOL(WINAPI *) (HGLRC, HGLRC)) in WIN_GL_LoadLibrary()
133 if (!_this->gl_data->wglGetProcAddress || in WIN_GL_LoadLibrary()
134 !_this->gl_data->wglCreateContext || in WIN_GL_LoadLibrary()
135 !_this->gl_data->wglDeleteContext || in WIN_GL_LoadLibrary()
136 !_this->gl_data->wglMakeCurrent) { in WIN_GL_LoadLibrary()
187 func = _this->gl_data->wglGetProcAddress(proc); in WIN_GL_GetProcAddress()
202 SDL_free(_this->gl_data); in WIN_GL_UnloadLibrary()
203 _this->gl_data = NULL; in WIN_GL_UnloadLibrary()
388 if (!_this->gl_data) { in WIN_GL_InitExtensions()
406 hglrc = _this->gl_data->wglCreateContext(hdc); in WIN_GL_InitExtensions()
410 _this->gl_data->wglMakeCurrent(hdc, hglrc); in WIN_GL_InitExtensions()
413 _this->gl_data->wglGetProcAddress("wglGetExtensionsStringARB"); in WIN_GL_InitExtensions()
421 _this->gl_data->HAS_WGL_ARB_pixel_format = SDL_FALSE; in WIN_GL_InitExtensions()
423 _this->gl_data->wglChoosePixelFormatARB = (BOOL(WINAPI *) in WIN_GL_InitExtensions()
428 _this->gl_data->wglGetPixelFormatAttribivARB = in WIN_GL_InitExtensions()
432 if ((_this->gl_data->wglChoosePixelFormatARB != NULL) && in WIN_GL_InitExtensions()
433 (_this->gl_data->wglGetPixelFormatAttribivARB != NULL)) { in WIN_GL_InitExtensions()
434 _this->gl_data->HAS_WGL_ARB_pixel_format = SDL_TRUE; in WIN_GL_InitExtensions()
439 _this->gl_data->HAS_WGL_EXT_swap_control_tear = SDL_FALSE; in WIN_GL_InitExtensions()
441 _this->gl_data->wglSwapIntervalEXT = in WIN_GL_InitExtensions()
443 _this->gl_data->wglGetSwapIntervalEXT = in WIN_GL_InitExtensions()
446 _this->gl_data->HAS_WGL_EXT_swap_control_tear = SDL_TRUE; in WIN_GL_InitExtensions()
449 _this->gl_data->wglSwapIntervalEXT = NULL; in WIN_GL_InitExtensions()
450 _this->gl_data->wglGetSwapIntervalEXT = NULL; in WIN_GL_InitExtensions()
456 &_this->gl_data->es_profile_max_supported_version.major, in WIN_GL_InitExtensions()
457 &_this->gl_data->es_profile_max_supported_version.minor in WIN_GL_InitExtensions()
463 _this->gl_data->HAS_WGL_ARB_context_flush_control = SDL_TRUE; in WIN_GL_InitExtensions()
468 _this->gl_data->HAS_WGL_ARB_create_context_robustness = SDL_TRUE; in WIN_GL_InitExtensions()
473 _this->gl_data->HAS_WGL_ARB_create_context_no_error = SDL_TRUE; in WIN_GL_InitExtensions()
476 _this->gl_data->wglMakeCurrent(hdc, NULL); in WIN_GL_InitExtensions()
477 _this->gl_data->wglDeleteContext(hglrc); in WIN_GL_InitExtensions()
504 hglrc = _this->gl_data->wglCreateContext(hdc); in WIN_GL_ChoosePixelFormatARB()
506 _this->gl_data->wglMakeCurrent(hdc, hglrc); in WIN_GL_ChoosePixelFormatARB()
508 if (_this->gl_data->HAS_WGL_ARB_pixel_format) { in WIN_GL_ChoosePixelFormatARB()
509 _this->gl_data->wglChoosePixelFormatARB(hdc, iAttribs, fAttribs, in WIN_GL_ChoosePixelFormatARB()
514 _this->gl_data->wglMakeCurrent(hdc, NULL); in WIN_GL_ChoosePixelFormatARB()
515 _this->gl_data->wglDeleteContext(hglrc); in WIN_GL_ChoosePixelFormatARB()
655 SDL_assert(_this->gl_data != NULL); in WIN_GL_UseEGL()
660 … || _this->gl_config.major_version > _this->gl_data->es_profile_max_supported_version.major in WIN_GL_UseEGL()
661 … || (_this->gl_config.major_version == _this->gl_data->es_profile_max_supported_version.major in WIN_GL_UseEGL()
662 … && _this->gl_config.minor_version > _this->gl_data->es_profile_max_supported_version.minor)); in WIN_GL_UseEGL()
706 context = _this->gl_data->wglCreateContext(hdc); in WIN_GL_CreateContext()
708 _this->gl_data->wglShareLists(share_context, context); in WIN_GL_CreateContext()
712 HGLRC temp_context = _this->gl_data->wglCreateContext(hdc); in WIN_GL_CreateContext()
725 (PFNWGLCREATECONTEXTATTRIBSARBPROC) _this->gl_data-> in WIN_GL_CreateContext()
752 if (_this->gl_data->HAS_WGL_ARB_context_flush_control) { in WIN_GL_CreateContext()
760 if (_this->gl_data->HAS_WGL_ARB_create_context_robustness) { in WIN_GL_CreateContext()
768 if (_this->gl_data->HAS_WGL_ARB_create_context_no_error) { in WIN_GL_CreateContext()
778 _this->gl_data->wglDeleteContext(temp_context); in WIN_GL_CreateContext()
800 if (!_this->gl_data) { in WIN_GL_MakeCurrent()
820 if (!_this->gl_data->wglMakeCurrent(hdc, (HGLRC) context)) { in WIN_GL_MakeCurrent()
829 if ((interval < 0) && (!_this->gl_data->HAS_WGL_EXT_swap_control_tear)) { in WIN_GL_SetSwapInterval()
831 } else if (_this->gl_data->wglSwapIntervalEXT) { in WIN_GL_SetSwapInterval()
832 if (_this->gl_data->wglSwapIntervalEXT(interval) != TRUE) { in WIN_GL_SetSwapInterval()
845 if (_this->gl_data->wglGetSwapIntervalEXT) { in WIN_GL_GetSwapInterval()
846 retval = _this->gl_data->wglGetSwapIntervalEXT(); in WIN_GL_GetSwapInterval()
865 if (!_this->gl_data) { in WIN_GL_DeleteContext()
868 _this->gl_data->wglDeleteContext((HGLRC) context); in WIN_GL_DeleteContext()