pub unsafe extern "C" fn SDL_SetWindowFullscreen(
    window: *mut SDL_Window,
    flags: u32
) -> c_int
Expand description

Sets the window’s desired fullscreen state.

  • SDL_WINDOW_FULLSCREEN
  • SDL_WINDOW_FULLSCREEN_DESKTOP
  • 0 for a “windowed” window.

Returns: 0 on success, negative on failure. Call SDL_GetErrorMsg for more.