Function SDL_GetWindowFullscreenMode

pub unsafe extern "C" fn SDL_GetWindowFullscreenMode(
    window: *mut SDL_Window,
) -> *const SDL_DisplayMode
Available on crate feature dep_sdl3 only.
Expand description

Query the display mode to use when a window is visible at fullscreen.

§Parameters

  • window: the window to query.

§Return value

Returns a pointer to the exclusive fullscreen mode to use or NULL for borderless fullscreen desktop mode.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also