pub fn new_headless(
        el: &winit::EventsLoop,
        cb: ContextBuilder,
        dims: dpi::PhysicalSize,
    ) -> Result<Self, CreationError> {
        let ContextBuilder { pf_reqs, gl_attr } = cb;
        let gl_attr = gl_attr.map_sharing(|ctx| &ctx.context);
        platform::Context::new_headless(el, &pf_reqs, &gl_attr, dims)
            .map(|context| Context { context })
    }
/// Builds the given GL context.
///
/// One notable limitation of the Wayland backend when it comes to shared
/// contexts is that both contexts must use the same events loop.
///
/// Errors can occur in two scenarios:
///  - If the window could not be created (via permission denied,
///  incompatible system, out of memory, etc.). This should be very rare.
///  - If the OpenGL context could not be created. This generally happens
///  because the underlying platform doesn't support a requested feature.
Builds the given GL context.
One notable limitation of the Wayland backend when it comes to shared
contexts is that both contexts must use the same events loop.

Errors can occur in two scenarios:
If the window could not be created (via permission denied,
incompatible system, out of memory, etc.). This should be very rare.
If the OpenGL context could not be created. This generally happens
because the underlying platform doesn't support a requested feature.
Builds the given GL context . One notable limitation of the Wayland backend when it comes to shared contexts is that both contexts must use the same events loop . Errors can occur in two scenarios : If the window could not be created ( via permission denied incompatible system out of memory etc . ) . This should be very rare . If the OpenGL context could not be created . This generally happens because the underlying platform doesn ' t support a requested feature .
pub fn new_headless(
        el: &winit::EventsLoop,
        cb: ContextBuilder,
        dims: dpi::PhysicalSize,
    ) -> Result<Self, CreationError> {
        let ContextBuilder { pf_reqs, gl_attr } = cb;
        let gl_attr = gl_attr.map_sharing(|ctx| &ctx.context);
        platform::Context::new_headless(el, &pf_reqs, &gl_attr, dims)
            .map(|context| Context { context })
    }
pub fn new_headless ( el : & winit :: EventsLoop , cb : ContextBuilder , dims : dpi :: PhysicalSize , ) -> Result < Self , CreationError > { let ContextBuilder { pf_reqs , gl_attr } = cb ; let gl_attr = gl_attr . map_sharing ( | ctx | & ctx . context ) ; platform :: Context :: new_headless ( el , & pf_reqs , & gl_attr , dims ) . map ( | context | Context { context } ) }
Builds the given GL context.
Builds the given GL context .
el
&winit::EventsLoop
cb
ContextBuilder
dims
dpi::PhysicalSize