Available on
gles
and neither Windows nor webgl
only.Expand description
cbindgen:ignore
StructsΒ§
- Adapter
Context - A wrapper around a [
glow::Context
] and the required EGL context that uses locking to guarantee exclusive access when shared with multiple threads. - Adapter
Context Lock - A guard containing a lock to an
AdapterContext
, while the GL context is kept current. - Display
Owner π - 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 π
- EglContext
Lock π - Inner π
- Instance
- Surface
- Swapchain
- Window
System πInterface
EnumsΒ§
- Display
Ref π - 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
- Srgb
Frame πBuffer Kind - Window
Kind π
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Β§
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 π
- EglDebug
Message πControl Fun - EglInstance π
Non- Emscripten
- EglLabel π
- WlDisplay
Connect πFun - WlDisplay
Disconnect πFun - WlEgl
Window πCreate Fun - WlEgl
Window πDestroy Fun - WlEgl
Window πResize Fun - XClose
Display πFun - XOpen
Display πFun