Function radiant_rs::backend::target_frame[][src]

pub fn target_frame<F>(renderer: &Renderer, frame: &mut Frame, draw_func: F) where
    F: FnMut(), 

Causes given renderer to render to the given glium::Frame within the closure.

Renderers default to rendering to the current frame, unless they were created by backend::create_renderer(), in which case control of the frame/display remains outside of Radiant. This method allows such Renderers to output to Glium frames.