NAME

SDL2::Version - Information About the Version of SDL in Use

SYNOPSIS

use SDL2 qw[:version];
SDL_GetVersion( my $ver = SDL2::Version->new );
CORE::say sprintf 'SDL version %d.%d.%d', $ver->major, $ver->minor, $ver->patch;

DESCRIPTION

SDL2::Version represents the library's version as three levels: major, minor, and patch level.

Methods

major( )

Returns value which increments with massive changes, additions, and enhancements.

minor( )

Returns value which increments with backwards-compatible changes to the major revision.

patch( )

Returns value which increments with fixes to the minor revision.

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>