pub fn flush(ctx: &mut Context)
Expand description
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.