SDL_DisplayMode

The structure that defines a display mode.

Members

Variables

displayID
SDL_DisplayID displayID;

The display this mode is associated with

format
SDL_PixelFormat format;

Pixel format

h
int h;

Height

pixel_density
float pixel_density;

Scale converting size to pixels (e.g. a 1920x1080 mode with 2.0 scale would have 3840x2160 pixels)

refresh_rate
float refresh_rate;

Refresh rate (or 0.0f for unspecified)

refresh_rate_denominator
int refresh_rate_denominator;

Precise refresh rate denominator

refresh_rate_numerator
int refresh_rate_numerator;

Precise refresh rate numerator (or 0 for unspecified)

w
int w;

Width

See Also

Meta