SDL 3.0
|
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 |
The structure that defines a display mode.
Definition at line 55 of file SDL_video.h.
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.
SDL_DisplayID SDL_DisplayMode::displayID |
the display this mode is associated with
Definition at line 57 of file SDL_video.h.
void* SDL_DisplayMode::driverdata |
driver-specific data, initialize to 0
Definition at line 65 of file SDL_video.h.
Uint32 SDL_DisplayMode::format |
pixel format
Definition at line 58 of file SDL_video.h.
int SDL_DisplayMode::pixel_h |
height in pixels (used for creating back buffers)
Definition at line 60 of file SDL_video.h.
int SDL_DisplayMode::pixel_w |
width in pixels (used for creating back buffers)
Definition at line 59 of file SDL_video.h.
float SDL_DisplayMode::refresh_rate |
refresh rate (or zero for unspecified)
Definition at line 64 of file SDL_video.h.
int SDL_DisplayMode::screen_h |
height in screen coordinates (used for creating windows)
Definition at line 62 of file SDL_video.h.
int SDL_DisplayMode::screen_w |
width in screen coordinates (used for creating windows)
Definition at line 61 of file SDL_video.h.