The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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>