SDL_DisplayMode
Name
SDL_DisplayMode -- The structure that defines a display mode.
Structure Definition
typedef struct
{
Uint32 format;
int w;
int h;
int refresh_rate;
void *driverdata;
} SDL_DisplayMode;
Structure Data
format |
pixel format |
w |
width |
h |
height |
refresh_rate |
refresh rate (or zero for unspecified) |
driverdata |
driver-specific data, initialize to 0 |
Description
This structure is used to store information about display modes retrieved through SDL_GetNumDisplayModes, SDL_GetDisplayMode, SDL_GetDesktopDisplayMode, SDL_GetCurrentDisplayMode or SDL_GetClosestDisplayMode, and to set the display mode through SDL_SetDisplayMode.
See Also
SDL_GetNumDisplayModes, SDL_GetDisplayMode, SDL_GetDesktopDisplayMode, SDL_GetCurrentDisplayMode, SDL_GetClosestDisplayMode, SDL_SetDisplayMode
