table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.24+ds-1
- unstable 3.2.26+ds-1
- experimental 3.3.2+git20251029~d9ca045+ds-1
| SDL_DisplayMode(3type) | SDL3 DATATYPES | SDL_DisplayMode(3type) |
NAME¶
SDL_DisplayMode - The structure that defines a display mode.
SYNOPSIS¶
#include <SDL3/SDL_video.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¶
SDL_GetFullscreenDisplayModes(3), SDL_GetDesktopDisplayMode(3), SDL_GetCurrentDisplayMode(3), SDL_SetWindowFullscreenMode(3), SDL_GetWindowFullscreenMode(3)
| SDL 3.2.26 | Simple Directmedia Layer |