Expand description
Common traits and types for egl rendering
Large parts of this module are taken from glutin src/api/egl
It therefore falls under glutin’s Apache 2.0 license
Wayland specific EGL functionality - EGL based WlBuffer
s.
The types of this module can be used to initialize hardware acceleration rendering
based on EGL for clients as it may enabled usage of EGLImage
based WlBuffer
s.
To use it bind any backend implementing the EGLGraphicsBackend
trait, that shall do the
rendering (so pick a fast one), to the wayland_server::Display
of your compositor.
Note only one backend may be bound to any Display
at any time.
You may then use the resulting EGLDisplay
to receive EGLImages
of an EGL-based WlBuffer
for rendering.
Re-exports
pub use self::context::EGLContext;
pub use self::surface::EGLSurface;
Modules
EGL context related structs
EGL error types
Type safe native types for safe context/surface creation
EGL surface related structs
Structs
Error that can happen on optional EGL features
Enums
Error that can occur when accessing an EGL buffer
Texture format types
Error that might happen when binding an
EGLImage
to a GL textureTraits
Trait any backend type may implement that allows binding a
Display
to create an EGLDisplay
for EGL-based WlBuffer
s.