|
Size: 1753
Comment: update formatting
|
Size: 1747
Comment: update content (w/ Sam)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| {i} There are four (4) macros ''(<<Color2(green,Need to create a link to a resource that introduces macros.)>>)'' that apply to this header. | Here are macros ''(<<Color2(green,Need to create a link to a resource that introduces macros.)>>)'' that are useful in dealing with version information. |
| Line 28: | Line 28: |
| * A minor macro that converts version numbers into a numeric value. | * A macro that converts version numbers into a numeric value. |
| Line 30: | Line 30: |
| * A minor macro that produces the current SDL version number (major.minor.patchlevel) | * A macro that produces the current SDL version number (major.minor.patchlevel) |
| Line 32: | Line 32: |
| * A minor macro that confirms whether a program was compiled with a version no older than the specified version. | * A macro that confirms whether a program was compiled with a version no older than the specified version. |
DRAFT |
Querying SDL Version
Include File(s): SDL_version.h
Contents
Introduction
These functions are used to collect or display information about the version of SDL that is currently being used by the program.
- 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
Here are macros (green )
This macro gathers information from SDL_MAJOR_VERSION, SDL_MINOR_VERSION, AND SDL_PATCHLEVEL (#defines) and fills the structure SDL_version with that information.
- A macro that converts version numbers into a numeric value.
- A macro that produces the current SDL version number (major.minor.patchlevel)
- A macro that confirms whether a program was compiled with a version no older than the specified version.
