1SDL::Version(3)       User Contributed Perl Documentation      SDL::Version(3)
2
3
4

NAME

6       SDL::Version - SDL Bindings for structure SDL_Version
7

CATEGORY

9       Core, Structure
10

SYNOPSIS

12        use SDL;
13        use SDL::Version;
14
15        # print compile-time version
16        printf("SDL::version is %d.%d.%d\n", SDL::version->major,
17                                             SDL::version->minor,
18                                             SDL::version->patch);
19
20        # print linked version
21        printf("SDL::linked_version is %d.%d.%d\n", SDL::linked_version->major,
22                                                    SDL::linked_version->minor,
23                                                    SDL::linked_version->patch);
24

DESCRIPTION

26       The "SDL::Version" structure is used by the "SDL::linked_version"
27       function and the "SDL::version" macro.  The "SDL::linked_version"
28       function returns the link-time SDL version whereas "SDL::version"
29       returns the compile-time SDL version.  Note: This is the SDL version,
30       not the SDL_Perl version.  The SDL_Perl version is in $SDL::VERSION.
31

METHODS

33   major
34       Returns the major version number.
35
36   minor
37       Returns the minor version number.
38
39   patch
40       Returns the patch version number.
41

AUTHORS

43       See "AUTHORS" in SDL.
44
45
46
47perl v5.32.0                      2020-07-28                   SDL::Version(3)
Impressum