[][src]Function tetra::graphics::flush

pub fn flush(ctx: &mut Context)

Sends queued data to the graphics hardware.

You usually will not have to call this manually, as set_texture and present will automatically flush when necessary. Try to keep flushing to a minimum, as this will reduce the number of draw calls made to the graphics device.