Lines Matching refs:glx
126 if (_glfw.glx.ARB_multisample)
129 if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB)
164 window->context.glx.window,
165 window->context.glx.handle))
187 glXSwapBuffers(_glfw.x11.display, window->context.glx.window);
195 if (_glfw.glx.EXT_swap_control)
197 _glfw.glx.SwapIntervalEXT(_glfw.x11.display,
198 window->context.glx.window,
201 else if (_glfw.glx.MESA_swap_control)
202 _glfw.glx.SwapIntervalMESA(interval);
203 else if (_glfw.glx.SGI_swap_control)
206 _glfw.glx.SwapIntervalSGI(interval);
225 if (_glfw.glx.GetProcAddress)
226 return _glfw.glx.GetProcAddress((const GLubyte*) procname);
227 else if (_glfw.glx.GetProcAddressARB)
228 return _glfw.glx.GetProcAddressARB((const GLubyte*) procname);
232 return _glfwPlatformGetModuleSymbol(_glfw.glx.handle, procname);
238 if (window->context.glx.window)
240 glXDestroyWindow(_glfw.x11.display, window->context.glx.window);
241 window->context.glx.window = None;
244 if (window->context.glx.handle)
246 glXDestroyContext(_glfw.x11.display, window->context.glx.handle);
247 window->context.glx.handle = NULL;
276 if (_glfw.glx.handle)
281 _glfw.glx.handle = _glfwPlatformLoadModule(sonames[i]);
282 if (_glfw.glx.handle)
286 if (!_glfw.glx.handle)
292 _glfw.glx.GetFBConfigs = (PFNGLXGETFBCONFIGSPROC)
293 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetFBConfigs");
294 _glfw.glx.GetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC)
295 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetFBConfigAttrib");
296 _glfw.glx.GetClientString = (PFNGLXGETCLIENTSTRINGPROC)
297 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetClientString");
298 _glfw.glx.QueryExtension = (PFNGLXQUERYEXTENSIONPROC)
299 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryExtension");
300 _glfw.glx.QueryVersion = (PFNGLXQUERYVERSIONPROC)
301 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryVersion");
302 _glfw.glx.DestroyContext = (PFNGLXDESTROYCONTEXTPROC)
303 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXDestroyContext");
304 _glfw.glx.MakeCurrent = (PFNGLXMAKECURRENTPROC)
305 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXMakeCurrent");
306 _glfw.glx.SwapBuffers = (PFNGLXSWAPBUFFERSPROC)
307 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXSwapBuffers");
308 _glfw.glx.QueryExtensionsString = (PFNGLXQUERYEXTENSIONSSTRINGPROC)
309 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryExtensionsString");
310 _glfw.glx.CreateNewContext = (PFNGLXCREATENEWCONTEXTPROC)
311 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXCreateNewContext");
312 _glfw.glx.CreateWindow = (PFNGLXCREATEWINDOWPROC)
313 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXCreateWindow");
314 _glfw.glx.DestroyWindow = (PFNGLXDESTROYWINDOWPROC)
315 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXDestroyWindow");
316 _glfw.glx.GetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)
317 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetVisualFromFBConfig");
319 if (!_glfw.glx.GetFBConfigs ||
320 !_glfw.glx.GetFBConfigAttrib ||
321 !_glfw.glx.GetClientString ||
322 !_glfw.glx.QueryExtension ||
323 !_glfw.glx.QueryVersion ||
324 !_glfw.glx.DestroyContext ||
325 !_glfw.glx.MakeCurrent ||
326 !_glfw.glx.SwapBuffers ||
327 !_glfw.glx.QueryExtensionsString ||
328 !_glfw.glx.CreateNewContext ||
329 !_glfw.glx.CreateWindow ||
330 !_glfw.glx.DestroyWindow ||
331 !_glfw.glx.GetVisualFromFBConfig)
339 _glfw.glx.GetProcAddress = (PFNGLXGETPROCADDRESSPROC)
340 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddress");
341 _glfw.glx.GetProcAddressARB = (PFNGLXGETPROCADDRESSPROC)
342 _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddressARB");
345 &_glfw.glx.errorBase,
346 &_glfw.glx.eventBase))
352 if (!glXQueryVersion(_glfw.x11.display, &_glfw.glx.major, &_glfw.glx.minor))
359 if (_glfw.glx.major == 1 && _glfw.glx.minor < 3)
368 _glfw.glx.SwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC)
371 if (_glfw.glx.SwapIntervalEXT)
372 _glfw.glx.EXT_swap_control = GLFW_TRUE;
377 _glfw.glx.SwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)
380 if (_glfw.glx.SwapIntervalSGI)
381 _glfw.glx.SGI_swap_control = GLFW_TRUE;
386 _glfw.glx.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC)
389 if (_glfw.glx.SwapIntervalMESA)
390 _glfw.glx.MESA_swap_control = GLFW_TRUE;
394 _glfw.glx.ARB_multisample = GLFW_TRUE;
397 _glfw.glx.ARB_framebuffer_sRGB = GLFW_TRUE;
400 _glfw.glx.EXT_framebuffer_sRGB = GLFW_TRUE;
404 _glfw.glx.CreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)
407 if (_glfw.glx.CreateContextAttribsARB)
408 _glfw.glx.ARB_create_context = GLFW_TRUE;
412 _glfw.glx.ARB_create_context_robustness = GLFW_TRUE;
415 _glfw.glx.ARB_create_context_profile = GLFW_TRUE;
418 _glfw.glx.EXT_create_context_es2_profile = GLFW_TRUE;
421 _glfw.glx.ARB_create_context_no_error = GLFW_TRUE;
424 _glfw.glx.ARB_context_flush_control = GLFW_TRUE;
436 if (_glfw.glx.handle)
438 _glfwPlatformFreeModule(_glfw.glx.handle);
439 _glfw.glx.handle = NULL;
461 share = ctxconfig->share->context.glx.handle;
472 if (!_glfw.glx.ARB_create_context ||
473 !_glfw.glx.ARB_create_context_profile ||
474 !_glfw.glx.EXT_create_context_es2_profile)
484 if (!_glfw.glx.ARB_create_context)
494 if (!_glfw.glx.ARB_create_context ||
495 !_glfw.glx.ARB_create_context_profile)
505 if (_glfw.glx.ARB_create_context)
527 if (_glfw.glx.ARB_create_context_robustness)
546 if (_glfw.glx.ARB_context_flush_control)
563 if (_glfw.glx.ARB_create_context_no_error)
584 window->context.glx.handle =
585 _glfw.glx.CreateContextAttribsARB(_glfw.x11.display,
595 if (!window->context.glx.handle)
597 if (_glfw.x11.errorCode == _glfw.glx.errorBase + GLXBadProfileARB &&
602 window->context.glx.handle =
609 window->context.glx.handle =
615 if (!window->context.glx.handle)
621 window->context.glx.window =
623 if (!window->context.glx.window)
697 return window->context.glx.handle;
719 return window->context.glx.window;