Function present

Source
pub fn present(
    renderer: &mut Renderer,
    surface: &mut Surface<'static>,
    viewport: &Viewport,
    background_color: Color,
    on_pre_present: impl FnOnce(),
) -> Result<(), SurfaceError>
Expand description

Presents the given primitives with the given Compositor.