Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2010-07-23 05:38:33
Size: 1603
Editor: SheenaSmith
Comment: update content (incomplete) - remove macro
Revision 8 as of 2010-07-23 18:59:33
Size: 1290
Editor: SheenaSmith
Comment: remove macro (replaced w/ its own page)
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
These functions are used to collect or display information about the version of SDL that is currently being used by the program. These functions are used to collect or display information about the version of SDL that is currently being used by the program ^or that it was complied against^.
Line 23: Line 23:
Here are macros ''(<<Color2(green,Need to create a link to a resource that introduces macros.)>>)'' that are useful in dealing with version information.

 * [[SDL_VERSION]]
  * This macro gathers information from SDL_MAJOR_VERSION, SDL_MINOR_VERSION, AND SDL_PATCHLEVEL (#defines) and fills the structure [[SDL_version]] with that information.
 * [[SDL_version#Related_Minor_Macros|SDL_VERSIONNUM]]
  * A macro that converts version numbers into a numeric value.
 * [[SDL_version#Related_Minor_Macros|SDL_VERSION_ATLEAST]]
  * A macro that confirms whether a program was compiled with a version no older than the specified version.
 . The version number may also be reported as a 4-digit numeric value where the thousands place represents the major version, the hundreds place represents the minor version, and the tens and ones places represent the patchlevel (update version).
 ''Example:'' The current version is 1300

DRAFT

Querying SDL Version

Include File(s): SDL_version.h

Introduction

These functions are used to collect or display information about the version of SDL that is currently being used by the program or that it was complied against.

  • The version number consists of three segments (X.Y.Z)
    • X = Major Version, which increments with massive changes, additions, and enhancements

    • Y = Minor Version, which increments with backwards-compatible changes to the major revision

    • Z = Patchlevel, which increments with fixes to the minor revision

    Example: The current version is 1.3.0

  • The version number may also be reported as a 4-digit numeric value where the thousands place represents the major version, the hundreds place represents the minor version, and the tens and ones places represent the patchlevel (update version).

    Example: The current version is 1300

Functions


CategoryCategory

None: CategoryVersion (last edited 2016-03-27 21:54:16 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit