Enum glutin_winit::ApiPrefence
source · pub enum ApiPrefence {
PreferEgl,
FallbackEgl,
}
Expand description
Simplified version of the DisplayApiPreference
which is used to simplify
cross platform window creation.
To learn about platform differences the DisplayApiPreference
variants.
Variants§
PreferEgl
Prefer EGL
over system provider like GLX
and WGL
.
FallbackEgl
Fallback to EGL
when failed to create the system profile.
This behavior is used by default. However consider using
Self::PreferEgl
if you don’t care about missing EGL features.
Trait Implementations§
source§impl Clone for ApiPrefence
impl Clone for ApiPrefence
source§fn clone(&self) -> ApiPrefence
fn clone(&self) -> ApiPrefence
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApiPrefence
impl Debug for ApiPrefence
source§impl Default for ApiPrefence
impl Default for ApiPrefence
source§impl PartialEq<ApiPrefence> for ApiPrefence
impl PartialEq<ApiPrefence> for ApiPrefence
source§fn eq(&self, other: &ApiPrefence) -> bool
fn eq(&self, other: &ApiPrefence) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.