Enum glutin::display::DisplayApiPreference
source · pub enum DisplayApiPreference {
Egl,
}
Expand description
Preference of the display that should be used.
Variants§
Egl
Available on
egl_backend
only.Use only EGL.
The EGL is a cross platform recent OpenGL platform. That being said it’s usually lacking on Windows and not present at all on macOS natively.
Be also aware that some features may not be present with it, like window transparency on X11 with mesa.
But despite this issues it should be preferred on at least Linux over GLX, given that GLX is phasing away.
Platform-specific
Windows: ANGLE can be used if libEGL.dll
and libGLESv2.dll
are
in the library search path.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DisplayApiPreference
impl Send for DisplayApiPreference
impl Sync for DisplayApiPreference
impl Unpin for DisplayApiPreference
impl UnwindSafe for DisplayApiPreference
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more