---
name: "SDL_DisplayMode"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DisplayMode"
---

# SDL\_DisplayMode(3type)

The structure that defines a display mode.

## NAME

SDL\_DisplayMode - The structure that defines a display mode.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_DisplayMode** **{**     **SDL\_DisplayID displayID;        /\*\*\< the display this mode is associated with \*/**     **SDL\_PixelFormat format;         /\*\*\< pixel format \*/**     **int w;                          /\*\*\< width \*/**     **int h;                          /\*\*\< height \*/**     **float pixel\_density;            /\*\*\< scale converting size to pixels (e.g. a 1920x1080 mode with 2.0 scale would have 3840x2160 pixels) \*/**     **float refresh\_rate;             /\*\*\< refresh rate (or 0.0f for unspecified) \*/**     **int refresh\_rate\_numerator;     /\*\*\< precise refresh rate numerator (or 0 for unspecified) \*/**     **int refresh\_rate\_denominator;   /\*\*\< precise refresh rate denominator \*/**     **SDL\_DisplayModeData \*internal;  /\*\*\< Private \*/** **} SDL\_DisplayMode;**

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetFullscreenDisplayModes**(3)](/SDL_GetFullscreenDisplayModes/3.md), **•**(3), [**SDL\_GetDesktopDisplayMode**(3)](/SDL_GetDesktopDisplayMode/3.md), **•**(3), [**SDL\_GetCurrentDisplayMode**(3)](/SDL_GetCurrentDisplayMode/3.md), **•**(3), [**SDL\_SetWindowFullscreenMode**(3)](/SDL_SetWindowFullscreenMode/3.md), **•**(3), [**SDL\_GetWindowFullscreenMode**(3)](/SDL_GetWindowFullscreenMode/3.md)
