devela::_dep::miniquad::window

Function new_rendering_backend

pub fn new_rendering_backend() -> Box<dyn RenderingBackend>
Available on crate feature dep_miniquad only.
Expand description

The same as

if metal {
   Box::new(MetalContext::new())
} else {
  Box::new(GlContext::new())
};

but under #cfg gate to avoid MetalContext on non-apple platforms