Function Display.displayModes

Wraps SDL_GetNumDisplayModes and SDL_GetDisplayMode which get return a list of the available display modes of the display

DisplayMode[] displayModes() @property @trusted const;

Returns

array of the dsdl2.DisplayModes

Throws

dsdl2.SDLException if failed to get the display modes