SDL 3.0
SDL_DisplayMode Struct Reference

#include <SDL_video.h>

Data Fields

SDL_DisplayID displayID
 
SDL_PixelFormatEnum format
 
int w
 
int h
 
float pixel_density
 
float refresh_rate
 
void * driverdata
 

Detailed Description

Field Documentation

◆ displayID

SDL_DisplayID SDL_DisplayMode::displayID

the display this mode is associated with

Definition at line 84 of file SDL_video.h.

◆ driverdata

void* SDL_DisplayMode::driverdata

driver-specific data, initialize to 0

Definition at line 90 of file SDL_video.h.

◆ format

SDL_PixelFormatEnum SDL_DisplayMode::format

pixel format

Definition at line 85 of file SDL_video.h.

◆ h

int SDL_DisplayMode::h

height

Definition at line 87 of file SDL_video.h.

◆ pixel_density

float SDL_DisplayMode::pixel_density

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

Definition at line 88 of file SDL_video.h.

◆ refresh_rate

float SDL_DisplayMode::refresh_rate

refresh rate (or zero for unspecified)

Definition at line 89 of file SDL_video.h.

◆ w

int SDL_DisplayMode::w

width

Definition at line 86 of file SDL_video.h.


The documentation for this struct was generated from the following file: