SDL2::DisplayMode - Structure that Defines a Display Mode
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();
SDL2::DisplayMode describes a display mode.
format
w
h
refresh_rate
0
driverdata
Sanko Robinson <sanko@cpan.org>
To install SDL2::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL2::FFI
CPAN shell
perl -MCPAN -e shell install SDL2::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.