Lines Matching refs:_glfw
46 glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value);
64 vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR);
69 glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount);
100 XVisualInfo* vi = glXGetVisualFromFBConfig(_glfw.x11.display, n);
126 if (_glfw.glx.ARB_multisample)
129 if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB)
152 return glXCreateNewContext(_glfw.x11.display,
163 if (!glXMakeCurrent(_glfw.x11.display,
174 if (!glXMakeCurrent(_glfw.x11.display, None, NULL))
182 _glfwPlatformSetTls(&_glfw.contextSlot, window);
187 glXSwapBuffers(_glfw.x11.display, window->context.glx.window);
192 _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot);
195 if (_glfw.glx.EXT_swap_control)
197 _glfw.glx.SwapIntervalEXT(_glfw.x11.display,
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);
213 glXQueryExtensionsString(_glfw.x11.display, _glfw.x11.screen);
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);
240 glXDestroyWindow(_glfw.x11.display, window->context.glx.window);
246 glXDestroyContext(_glfw.x11.display, window->context.glx.handle);
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");
344 if (!glXQueryExtension(_glfw.x11.display,
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;
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)
585 _glfw.glx.CreateContextAttribsARB(_glfw.x11.display,
597 if (_glfw.x11.errorCode == _glfw.glx.errorBase + GLXBadProfileARB &&
622 glXCreateWindow(_glfw.x11.display, native, window->x11.handle, NULL);
658 result = glXGetVisualFromFBConfig(_glfw.x11.display, native);
682 if (_glfw.platform.platformID != GLFW_PLATFORM_X11)
704 if (_glfw.platform.platformID != GLFW_PLATFORM_X11)