Module egl

Source
Available on gles and neither Windows nor webgl only.
Expand description

cbindgen:ignore

StructsΒ§

AdapterContext
A wrapper around a [glow::Context] and the required EGL context that uses locking to guarantee exclusive access when shared with multiple threads.
AdapterContextLock
A guard containing a lock to an AdapterContext, while the GL context is kept current.
DisplayOwner πŸ”’
DisplayOwner ties the lifetime of the system display handle to that of the loaded library. It implements Drop to ensure that the display handle is closed prior to unloading the library so that we don’t leak the associated file descriptors
EglContext πŸ”’
EglContextLock πŸ”’
Inner πŸ”’
Instance
Surface
Swapchain
WindowSystemInterface πŸ”’

EnumsΒ§

DisplayRef πŸ”’
A simple wrapper around an X11 or Wayland display handle. Since the logic in this file doesn’t actually need to directly persist a wayland connection handle, the only load-bearing enum variant is the X11 variant
SrgbFrameBufferKind πŸ”’
WindowKind πŸ”’

ConstantsΒ§

CONTEXT_LOCK_TIMEOUT_SECS πŸ”’
The amount of time to wait while trying to obtain a lock to the adapter context
EGL_CONTEXT_FLAGS_KHR πŸ”’
EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR πŸ”’
EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT πŸ”’
EGL_DEBUG_MSG_CRITICAL_KHR πŸ”’
EGL_DEBUG_MSG_ERROR_KHR πŸ”’
EGL_DEBUG_MSG_INFO_KHR πŸ”’
EGL_DEBUG_MSG_WARN_KHR πŸ”’
EGL_GL_COLORSPACE_KHR πŸ”’
EGL_GL_COLORSPACE_SRGB_KHR πŸ”’
EGL_PLATFORM_ANGLE_ANGLE πŸ”’
EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED πŸ”’
EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE πŸ”’
EGL_PLATFORM_SURFACELESS_MESA πŸ”’
EGL_PLATFORM_WAYLAND_KHR πŸ”’
EGL_PLATFORM_X11_KHR πŸ”’

StaticsΒ§

DISPLAYS_REFERENCE_COUNT πŸ”’

FunctionsΒ§

choose_config πŸ”’
Choose GLES framebuffer configuration.
egl_debug_proc πŸ”’ ⚠
find_library πŸ”’ ⚠
initialize_display πŸ”’
instance_err πŸ”’
open_x_display πŸ”’
terminate_display πŸ”’
test_wayland_display πŸ”’

Type AliasesΒ§

EGLDEBUGPROCKHR πŸ”’
EglDebugMessageControlFun πŸ”’
EglInstance πŸ”’ Non-Emscripten
EglLabel πŸ”’
WlDisplayConnectFun πŸ”’
WlDisplayDisconnectFun πŸ”’
WlEglWindowCreateFun πŸ”’
WlEglWindowDestroyFun πŸ”’
WlEglWindowResizeFun πŸ”’
XCloseDisplayFun πŸ”’
XOpenDisplayFun πŸ”’