(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_GetFullscreenDisplayModes

Get a list of fullscreen display modes available on a display.

Header File

Defined in <SDL3/SDL_video.h>

Syntax

extern SDL_DECLSPEC const SDL_DisplayMode **SDLCALL SDL_GetFullscreenDisplayModes(SDL_DisplayID displayID, int *count);

Function Parameters

displayID the instance ID of the display to query
count a pointer filled in with the number of display modes returned

Return Value

Returns a NULL terminated array of display mode pointers which should be freed with SDL_free(), or NULL on error; call SDL_GetError() for more details.

Remarks

The display modes are sorted in this priority:

Version

This function is available since SDL 3.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryVideo