pub trait HeadlessContextExt {
    // Required methods
    fn build_osmesa(
        self,
        size: PhysicalSize
    ) -> Result<Context<NotCurrent>, CreationError>
       where Self: Sized;
    fn build_surfaceless(
        self,
        el: &EventsLoop
    ) -> Result<Context<NotCurrent>, CreationError>
       where Self: Sized;
}
Expand description

A linux-specific extension to the ContextBuilder which allows building linux-specific headless contexts.

Required Methods§

source

fn build_osmesa( self, size: PhysicalSize ) -> 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.

source

fn build_surfaceless( self, el: &EventsLoop ) -> 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§