X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Version.html-inc;h=512c582500789ce5b752a9b53b1c91e2bcbe1573;hb=801213bdc2b379a428fdebad07e9d404cec99a06;hp=29def1796b3c1253d5495b20f0ecae6d91286888;hpb=b82df1356a6be5ab828d198947fe0e5b76efd735;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Version.html-inc b/pages/SDL-Version.html-inc index 29def17..512c582 100644 --- a/pages/SDL-Version.html-inc +++ b/pages/SDL-Version.html-inc @@ -3,19 +3,72 @@

Index


NAME

Top

-

SDL::Version -- SDL Bindings for structure SDL_Version

+

SDL::Version - SDL Bindings for structure SDL_Version

CATEGORY

Top

-

TODO, Core, Structure

+

Core, Structure

+ +
+

SYNOPSIS

Top

+
+
 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);
+
+
+ +
+

DESCRIPTION

Top

+
+

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

Top

+
+ +
+

major

+
+

Returns the major version number.

+ +
+

minor

+
+

Returns the minor version number.

+ +
+

patch

+
+

Returns the patch version number.

\ No newline at end of file