Lines Matching refs:gl_config

107     _this->gl_config.dll_handle = SDL_LoadObject(path);  in WIN_GL_LoadLibrary()
108 if (!_this->gl_config.dll_handle) { in WIN_GL_LoadLibrary()
111 SDL_strlcpy(_this->gl_config.driver_path, path, in WIN_GL_LoadLibrary()
112 SDL_arraysize(_this->gl_config.driver_path)); in WIN_GL_LoadLibrary()
121 handle = _this->gl_config.dll_handle; in WIN_GL_LoadLibrary()
174 ++_this->gl_config.driver_loaded; in WIN_GL_LoadLibrary()
176 --_this->gl_config.driver_loaded; in WIN_GL_LoadLibrary()
190 func = GetProcAddress(_this->gl_config.dll_handle, proc); in WIN_GL_GetProcAddress()
198 SDL_UnloadObject(_this->gl_config.dll_handle); in WIN_GL_UnloadLibrary()
199 _this->gl_config.dll_handle = NULL; in WIN_GL_UnloadLibrary()
213 if (_this->gl_config.double_buffer) { in WIN_GL_SetupPixelFormat()
216 if (_this->gl_config.stereo) { in WIN_GL_SetupPixelFormat()
221 pfd->cRedBits = _this->gl_config.red_size; in WIN_GL_SetupPixelFormat()
222 pfd->cGreenBits = _this->gl_config.green_size; in WIN_GL_SetupPixelFormat()
223 pfd->cBlueBits = _this->gl_config.blue_size; in WIN_GL_SetupPixelFormat()
224 pfd->cAlphaBits = _this->gl_config.alpha_size; in WIN_GL_SetupPixelFormat()
225 if (_this->gl_config.buffer_size) { in WIN_GL_SetupPixelFormat()
227 _this->gl_config.buffer_size - _this->gl_config.alpha_size; in WIN_GL_SetupPixelFormat()
231 pfd->cAccumRedBits = _this->gl_config.accum_red_size; in WIN_GL_SetupPixelFormat()
232 pfd->cAccumGreenBits = _this->gl_config.accum_green_size; in WIN_GL_SetupPixelFormat()
233 pfd->cAccumBlueBits = _this->gl_config.accum_blue_size; in WIN_GL_SetupPixelFormat()
234 pfd->cAccumAlphaBits = _this->gl_config.accum_alpha_size; in WIN_GL_SetupPixelFormat()
238 pfd->cDepthBits = _this->gl_config.depth_size; in WIN_GL_SetupPixelFormat()
239 pfd->cStencilBits = _this->gl_config.stencil_size; in WIN_GL_SetupPixelFormat()
544 *iAttr++ = _this->gl_config.red_size; in WIN_GL_SetupWindowInternal()
546 *iAttr++ = _this->gl_config.green_size; in WIN_GL_SetupWindowInternal()
548 *iAttr++ = _this->gl_config.blue_size; in WIN_GL_SetupWindowInternal()
550 if (_this->gl_config.alpha_size) { in WIN_GL_SetupWindowInternal()
552 *iAttr++ = _this->gl_config.alpha_size; in WIN_GL_SetupWindowInternal()
556 *iAttr++ = _this->gl_config.double_buffer; in WIN_GL_SetupWindowInternal()
559 *iAttr++ = _this->gl_config.depth_size; in WIN_GL_SetupWindowInternal()
561 if (_this->gl_config.stencil_size) { in WIN_GL_SetupWindowInternal()
563 *iAttr++ = _this->gl_config.stencil_size; in WIN_GL_SetupWindowInternal()
566 if (_this->gl_config.accum_red_size) { in WIN_GL_SetupWindowInternal()
568 *iAttr++ = _this->gl_config.accum_red_size; in WIN_GL_SetupWindowInternal()
571 if (_this->gl_config.accum_green_size) { in WIN_GL_SetupWindowInternal()
573 *iAttr++ = _this->gl_config.accum_green_size; in WIN_GL_SetupWindowInternal()
576 if (_this->gl_config.accum_blue_size) { in WIN_GL_SetupWindowInternal()
578 *iAttr++ = _this->gl_config.accum_blue_size; in WIN_GL_SetupWindowInternal()
581 if (_this->gl_config.accum_alpha_size) { in WIN_GL_SetupWindowInternal()
583 *iAttr++ = _this->gl_config.accum_alpha_size; in WIN_GL_SetupWindowInternal()
586 if (_this->gl_config.stereo) { in WIN_GL_SetupWindowInternal()
591 if (_this->gl_config.multisamplebuffers) { in WIN_GL_SetupWindowInternal()
593 *iAttr++ = _this->gl_config.multisamplebuffers; in WIN_GL_SetupWindowInternal()
596 if (_this->gl_config.multisamplesamples) { in WIN_GL_SetupWindowInternal()
598 *iAttr++ = _this->gl_config.multisamplesamples; in WIN_GL_SetupWindowInternal()
601 if (_this->gl_config.framebuffer_srgb_capable) { in WIN_GL_SetupWindowInternal()
603 *iAttr++ = _this->gl_config.framebuffer_srgb_capable; in WIN_GL_SetupWindowInternal()
612 if (_this->gl_config.accelerated) { in WIN_GL_SetupWindowInternal()
624 if ( ( !pixel_format ) && ( _this->gl_config.accelerated < 0 ) ) { in WIN_GL_SetupWindowInternal()
656 SDL_assert(_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES); in WIN_GL_UseEGL()
659 … || _this->gl_config.major_version == 1 /* No WGL extension for OpenGL ES 1.x profiles. */ 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()
671 if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES && WIN_GL_UseEGL(_this)) { in WIN_GL_CreateContext()
696 if (_this->gl_config.share_with_current_context) { in WIN_GL_CreateContext()
702 if (_this->gl_config.major_version < 3 && in WIN_GL_CreateContext()
703 _this->gl_config.profile_mask == 0 && in WIN_GL_CreateContext()
704 _this->gl_config.flags == 0) { in WIN_GL_CreateContext()
735 attribs[iattr++] = _this->gl_config.major_version; in WIN_GL_CreateContext()
737 attribs[iattr++] = _this->gl_config.minor_version; in WIN_GL_CreateContext()
740 if (_this->gl_config.profile_mask != 0) { in WIN_GL_CreateContext()
742 attribs[iattr++] = _this->gl_config.profile_mask; in WIN_GL_CreateContext()
746 if (_this->gl_config.flags != 0) { in WIN_GL_CreateContext()
748 attribs[iattr++] = _this->gl_config.flags; in WIN_GL_CreateContext()
754 attribs[iattr++] = _this->gl_config.release_behavior ? in WIN_GL_CreateContext()
762 attribs[iattr++] = _this->gl_config.reset_notification ? in WIN_GL_CreateContext()
770 attribs[iattr++] = _this->gl_config.no_error; in WIN_GL_CreateContext()