[][src]Function tetra::window::set_vsync

pub fn set_vsync(ctx: &mut Context, vsync: bool) -> Result

Sets whether the window should be vsynced.

Errors

  • TetraError::FailedToChangeDisplayMode will be returned if the game was unable to change vsync mode.