[−][src]Trait glutin::platform::unix::HeadlessContextExt
A unix-specific extension to the ContextBuilder
which allows building
unix-specific headless contexts.
Required methods
fn build_osmesa(
self,
size: PhysicalSize<u32>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
self,
size: PhysicalSize<u32>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
Builds an OsMesa context.
Errors can occur if the OpenGL Context
could not be created. This
generally happens because the underlying platform doesn't support a
requested feature.
fn build_surfaceless<TE>(
self,
el: &EventLoopWindowTarget<TE>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
self,
el: &EventLoopWindowTarget<TE>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
Builds an EGL-surfaceless context.
Errors can occur if the OpenGL Context
could not be created. This
generally happens because the underlying platform doesn't support a
requested feature.
Implementors
impl<'a, T: ContextCurrentState> HeadlessContextExt for ContextBuilder<'a, T>
[src]
fn build_osmesa(
self,
size: PhysicalSize<u32>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
[src]
self,
size: PhysicalSize<u32>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
fn build_surfaceless<TE>(
self,
el: &EventLoopWindowTarget<TE>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,
[src]
self,
el: &EventLoopWindowTarget<TE>
) -> Result<Context<NotCurrent>, CreationError> where
Self: Sized,