NAME
SDL2::DisplayMode - Structure that Defines a Display Mode
SYNOPSIS
SDL_Init(SDL_INIT_VIDEO);
my
$mode
= SDL2::GetDisplayMode( 0, 0 );
printf
'Display res %dx%d @ %dHz'
,
$mode
->w,
$mode
->h,
$mode
->refresh_rate;
SDL_Quit();
DESCRIPTION
SDL2::DisplayMode describes a display mode.
Fields
format
- pixel formatw
- width, in screen coordinatesh
- height, in screen coordinatesrefresh_rate
- refresh rate (or0
for unspecified)driverdata
- opaque, driver-specific data
AUTHOR
Sanko Robinson <sanko@cpan.org>