[][src]Function tetra::graphics::set_canvas

pub fn set_canvas(ctx: &mut Context, canvas: &Canvas)

Sets the renderer to redirect all drawing commands to the specified canvas.

If the canvas is different from the one that is currently in use, this will trigger a flush to the graphics hardware.