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

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>