Function ggez::graphics::set_mode[][src]

pub fn set_mode(context: &mut Context, mode: WindowMode) -> GameResult<()>

Sets the window mode, such as the size and other properties.

Setting the window mode may have side effects, such as clearing the screen or setting the screen coordinates viewport to some undefined value. It is recommended to call set_screen_coordinates() after changing the window size to make sure everything is what you want it to be.