SDL 3.0
SDL_DisplayMode Struct Reference

The structure that defines a display mode. More...

#include <SDL_video.h>

Data Fields

SDL_DisplayID displayID
 
Uint32 format
 
int pixel_w
 
int pixel_h
 
int screen_w
 
int screen_h
 
float display_scale
 
float refresh_rate
 
void * driverdata
 

Detailed Description

Field Documentation

◆ display_scale

float SDL_DisplayMode::display_scale

scale converting screen coordinates to pixels (e.g. a 2560x1440 screen size mode with 1.5 scale would have 3840x2160 pixels)

Definition at line 63 of file SDL_video.h.

◆ displayID

SDL_DisplayID SDL_DisplayMode::displayID

the display this mode is associated with

Definition at line 57 of file SDL_video.h.

◆ driverdata

void* SDL_DisplayMode::driverdata

driver-specific data, initialize to 0

Definition at line 65 of file SDL_video.h.

◆ format

Uint32 SDL_DisplayMode::format

pixel format

Definition at line 58 of file SDL_video.h.

◆ pixel_h

int SDL_DisplayMode::pixel_h

height in pixels (used for creating back buffers)

Definition at line 60 of file SDL_video.h.

◆ pixel_w

int SDL_DisplayMode::pixel_w

width in pixels (used for creating back buffers)

Definition at line 59 of file SDL_video.h.

◆ refresh_rate

float SDL_DisplayMode::refresh_rate

refresh rate (or zero for unspecified)

Definition at line 64 of file SDL_video.h.

◆ screen_h

int SDL_DisplayMode::screen_h

height in screen coordinates (used for creating windows)

Definition at line 62 of file SDL_video.h.

◆ screen_w

int SDL_DisplayMode::screen_w

width in screen coordinates (used for creating windows)

Definition at line 61 of file SDL_video.h.


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