There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

SDL2::DisplayMode - Structure that Defines a Display Mode

SYNOPSIS

use SDL2 qw[:all];
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 format
w - width, in screen coordinates
h - height, in screen coordinates
refresh_rate - refresh rate (or 0 for unspecified)
driverdata - opaque, driver-specific data

AUTHOR

Sanko Robinson <sanko@cpan.org>