SDL::Version(3pm)

SDL::Version3pm

Sdl bindings for structure sdl_version

Usage

 use SDL;
 use SDL::Version;
 # print compile-time version
 printf("SDL::version is %d.%d.%d\n", SDL::version->major,
                                      SDL::version->minor,
                                      SDL::version->patch);
 # print linked version
 printf("SDL::linked_version is %d.%d.%d\n", SDL::linked_version->major,
                                             SDL::linked_version->minor,
                                             SDL::linked_version->patch);

Category

Core, Structure

Overview

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

Methods

major

Returns the major version number.

minor

Returns the minor version number.

patch

Returns the patch version number.

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Authors

See "AUTHORS" in SDL.

From libsdl-perl 2.548-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.