Function tetra::window::set_fullscreen
source · pub fn set_fullscreen(ctx: &mut Context, fullscreen: bool) -> Result
Expand description
Sets whether the window should be in fullscreen mode.
Errors
TetraError::FailedToChangeDisplayMode
will be returned if the game was unable to enter or exit fullscreen.