Lines Matching refs:egl

82     eglGetConfigAttrib(_glfw.egl.display, config, attrib, &value);
108 if (_glfw.egl.platform == EGL_PLATFORM_SURFACELESS_MESA)
119 eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount);
127 eglGetConfigs(_glfw.egl.display, nativeConfigs, nativeCount, &nativeCount);
189 if (!_glfw.egl.EXT_present_opaque)
247 if (!eglMakeCurrent(_glfw.egl.display,
248 window->context.egl.surface,
249 window->context.egl.surface,
250 window->context.egl.handle))
260 if (!eglMakeCurrent(_glfw.egl.display,
293 eglSwapBuffers(_glfw.egl.display, window->context.egl.surface);
298 eglSwapInterval(_glfw.egl.display, interval);
303 const char* extensions = eglQueryString(_glfw.egl.display, EGL_EXTENSIONS);
318 if (window->context.egl.client)
321 _glfwPlatformGetModuleSymbol(window->context.egl.client, procname);
336 if (window->context.egl.client)
338 _glfwPlatformFreeModule(window->context.egl.client);
339 window->context.egl.client = NULL;
343 if (window->context.egl.surface)
345 eglDestroySurface(_glfw.egl.display, window->context.egl.surface);
346 window->context.egl.surface = EGL_NO_SURFACE;
349 if (window->context.egl.handle)
351 eglDestroyContext(_glfw.egl.display, window->context.egl.handle);
352 window->context.egl.handle = EGL_NO_CONTEXT;
387 if (_glfw.egl.handle)
392 _glfw.egl.handle = _glfwPlatformLoadModule(sonames[i]);
393 if (_glfw.egl.handle)
397 if (!_glfw.egl.handle)
403 _glfw.egl.prefix = (strncmp(sonames[i], "lib", 3) == 0);
405 _glfw.egl.GetConfigAttrib = (PFN_eglGetConfigAttrib)
406 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetConfigAttrib");
407 _glfw.egl.GetConfigs = (PFN_eglGetConfigs)
408 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetConfigs");
409 _glfw.egl.GetDisplay = (PFN_eglGetDisplay)
410 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetDisplay");
411 _glfw.egl.GetError = (PFN_eglGetError)
412 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetError");
413 _glfw.egl.Initialize = (PFN_eglInitialize)
414 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglInitialize");
415 _glfw.egl.Terminate = (PFN_eglTerminate)
416 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglTerminate");
417 _glfw.egl.BindAPI = (PFN_eglBindAPI)
418 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglBindAPI");
419 _glfw.egl.CreateContext = (PFN_eglCreateContext)
420 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglCreateContext");
421 _glfw.egl.DestroySurface = (PFN_eglDestroySurface)
422 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglDestroySurface");
423 _glfw.egl.DestroyContext = (PFN_eglDestroyContext)
424 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglDestroyContext");
425 _glfw.egl.CreateWindowSurface = (PFN_eglCreateWindowSurface)
426 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglCreateWindowSurface");
427 _glfw.egl.CreatePbufferSurface = (PFN_eglCreatePbufferSurface)
428 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglCreatePbufferSurface");
429 _glfw.egl.MakeCurrent = (PFN_eglMakeCurrent)
430 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglMakeCurrent");
431 _glfw.egl.SwapBuffers = (PFN_eglSwapBuffers)
432 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglSwapBuffers");
433 _glfw.egl.SwapInterval = (PFN_eglSwapInterval)
434 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglSwapInterval");
435 _glfw.egl.QueryString = (PFN_eglQueryString)
436 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglQueryString");
437 _glfw.egl.GetProcAddress = (PFN_eglGetProcAddress)
438 _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetProcAddress");
440 if (!_glfw.egl.GetConfigAttrib ||
441 !_glfw.egl.GetConfigs ||
442 !_glfw.egl.GetDisplay ||
443 !_glfw.egl.GetError ||
444 !_glfw.egl.Initialize ||
445 !_glfw.egl.Terminate ||
446 !_glfw.egl.BindAPI ||
447 !_glfw.egl.CreateContext ||
448 !_glfw.egl.DestroySurface ||
449 !_glfw.egl.DestroyContext ||
450 !_glfw.egl.CreateWindowSurface ||
451 !_glfw.egl.CreatePbufferSurface ||
452 !_glfw.egl.MakeCurrent ||
453 !_glfw.egl.SwapBuffers ||
454 !_glfw.egl.SwapInterval ||
455 !_glfw.egl.QueryString ||
456 !_glfw.egl.GetProcAddress)
467 _glfw.egl.EXT_client_extensions = GLFW_TRUE;
469 if (_glfw.egl.EXT_client_extensions)
471 _glfw.egl.EXT_platform_base =
473 _glfw.egl.EXT_platform_x11 =
475 _glfw.egl.EXT_platform_wayland =
477 _glfw.egl.ANGLE_platform_angle =
479 _glfw.egl.ANGLE_platform_angle_opengl =
481 _glfw.egl.ANGLE_platform_angle_d3d =
483 _glfw.egl.ANGLE_platform_angle_vulkan =
485 _glfw.egl.ANGLE_platform_angle_metal =
487 _glfw.egl.MESA_platform_surfaceless =
491 if (_glfw.egl.EXT_platform_base)
493 _glfw.egl.GetPlatformDisplayEXT = (PFNEGLGETPLATFORMDISPLAYEXTPROC)
495 _glfw.egl.CreatePlatformWindowSurfaceEXT = (PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)
499 _glfw.egl.platform = _glfw.platform.getEGLPlatform(&attribs);
500 if (_glfw.egl.platform)
502 _glfw.egl.display =
503 eglGetPlatformDisplayEXT(_glfw.egl.platform,
508 _glfw.egl.display = eglGetDisplay(_glfw.platform.getEGLNativeDisplay());
512 if (_glfw.egl.display == EGL_NO_DISPLAY)
522 if (!eglInitialize(_glfw.egl.display, &_glfw.egl.major, &_glfw.egl.minor))
532 _glfw.egl.KHR_create_context =
534 _glfw.egl.KHR_create_context_no_error =
536 _glfw.egl.KHR_gl_colorspace =
538 _glfw.egl.KHR_get_all_proc_addresses =
540 _glfw.egl.KHR_context_flush_control =
542 _glfw.egl.EXT_present_opaque =
552 if (_glfw.egl.display)
554 eglTerminate(_glfw.egl.display);
555 _glfw.egl.display = EGL_NO_DISPLAY;
558 if (_glfw.egl.handle)
560 _glfwPlatformFreeModule(_glfw.egl.handle);
561 _glfw.egl.handle = NULL;
584 if (!_glfw.egl.display)
591 share = ctxconfig->share->context.egl.handle;
617 if (_glfw.egl.KHR_create_context)
659 if (_glfw.egl.KHR_create_context_no_error)
675 if (_glfw.egl.KHR_context_flush_control)
691 window->context.egl.handle = eglCreateContext(_glfw.egl.display,
694 if (window->context.egl.handle == EGL_NO_CONTEXT)
707 if (_glfw.egl.KHR_gl_colorspace)
716 if (_glfw.egl.EXT_present_opaque)
720 if (_glfw.egl.platform == EGL_PLATFORM_SURFACELESS_MESA)
732 if (!_glfw.egl.platform || _glfw.egl.platform == EGL_PLATFORM_ANGLE_ANGLE)
737 window->context.egl.surface =
738 eglCreateWindowSurface(_glfw.egl.display, config, native, attribs);
740 else if (_glfw.egl.platform == EGL_PLATFORM_SURFACELESS_MESA)
743 window->context.egl.surface =
744 eglCreatePbufferSurface(_glfw.egl.display, config, attribs);
748 window->context.egl.surface =
749 eglCreatePlatformWindowSurfaceEXT(_glfw.egl.display, config, native, attribs);
752 if (window->context.egl.surface == EGL_NO_SURFACE)
760 window->context.egl.config = config;
763 if (!_glfw.egl.KHR_get_all_proc_addresses)
831 if (_glfw.egl.prefix != (strncmp(sonames[i], "lib", 3) == 0))
834 window->context.egl.client = _glfwPlatformLoadModule(sonames[i]);
835 if (window->context.egl.client)
839 if (!window->context.egl.client)
876 eglGetConfigAttrib(_glfw.egl.display, native,
906 return _glfw.egl.display;
926 return window->context.egl.handle;
946 return window->context.egl.surface;