SDL_DisplayMode - The structure that defines a display mode.
Contents
Availability
This struct is available since SDL 3.2.0.
Name
SDL_DisplayMode - The structure that defines a display mode.
See Also
SDL_GetFullscreenDisplayModes(3), SDL_GetDesktopDisplayMode(3), SDL_GetCurrentDisplayMode(3), SDL_SetWindowFullscreenMode(3), SDL_GetWindowFullscreenMode(3) Simple Directmedia Layer SDL 3.2.20 SDL_DisplayMode(3type)
Synopsis
#include<SDL3/SDL_video.h>typedefstructSDL_DisplayMode{SDL_DisplayIDdisplayID;/**<thedisplaythismodeisassociatedwith*/SDL_PixelFormatformat;/**<pixelformat*/intw;/**<width*/inth;/**<height*/floatpixel_density;/**<scaleconvertingsizetopixels(e.g.a1920x1080modewith2.0scalewouldhave3840x2160pixels)*/floatrefresh_rate;/**<refreshrate(or0.0fforunspecified)*/intrefresh_rate_numerator;/**<preciserefreshratenumerator(or0forunspecified)*/intrefresh_rate_denominator;/**<preciserefreshratedenominator*/SDL_DisplayModeData*internal;/**<Private*/}SDL_DisplayMode;