Function tetra::graphics::set_canvas [−][src]
pub fn set_canvas(ctx: &mut Context, canvas: &Canvas)
Expand description
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.