SDL Wiki
(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

SDL_DisplayMode ** SDL_GetFullscreenDisplayModes(SDL_DisplayID displayID, int *count);

Function Parameters

SDL_DisplayID displayID the instance ID of the display to query.
int * count a pointer filled in with the number of display modes returned, may be NULL.

Return Value

(SDL_DisplayMode **) Returns a NULL terminated array of display mode pointers or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.

Remarks

The display modes are sorted in this priority:

Version

This function is available since SDL 3.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryVideo


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.