line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SDL2::version 0.01 { |
2
|
2
|
|
|
2
|
|
12
|
use lib '../lib', 'lib', '/home/sanko/Projects/SDL2.pm/lib'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
3
|
2
|
|
|
2
|
|
392
|
use SDL2::Utils; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
has major => 'uint8', minor => 'uint8', patch => 'uint8'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=encoding utf-8 |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
SDL2::version - Information About the Version of SDL in Use |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
use SDL2 qw[:version]; |
15
|
|
|
|
|
|
|
SDL_GetVersion( my $ver = SDL2::version->new ); |
16
|
|
|
|
|
|
|
CORE::say sprintf 'SDL version %d.%d.%d', $ver->major, $ver->minor, $ver->patch; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
SDL2::version represents the library's version as three levels: major, minor, |
21
|
|
|
|
|
|
|
and patch level. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 Methods |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 C |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Returns value which increments with massive changes, additions, and |
28
|
|
|
|
|
|
|
enhancements. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 C |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Returns value which increments with backwards-compatible changes to the major |
33
|
|
|
|
|
|
|
revision. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 C |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Returns value which increments with fixes to the minor revision. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 LICENSE |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Copyright (C) Sanko Robinson. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it under |
44
|
|
|
|
|
|
|
the terms found in the Artistic License 2. Other copyrights, terms, and |
45
|
|
|
|
|
|
|
conditions may apply to data transmitted through this module. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Sanko Robinson Esanko@cpan.orgE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=begin stopwords |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=end stopwords |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
1; |