|
Size: 1661
Comment: add introduction
|
Size: 1743
Comment: update formatting
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 7: | Line 7: |
| == Querying SDL Version (SDL_version.h) == ''-or-'' === Querying SDL Version (SDL_version.h) === |
= Querying SDL Version = '''Primary Include:''' [[http://hg.libsdl.org/SDL/file/68dfd6df47da/include/SDL_version.h|SDL_version.h]] <<TableOfContents()>> == Introduction == |
| Line 17: | Line 21: |
| ''Example:'' 1.3.0 | ''Example:'' The current version is 1.3.0 |
| Line 19: | Line 23: |
| {i} There are four (4) macros <<Color2(green,Create a link to a resource that describes macros)>> that apply to this header. | {i} There are four (4) macros ''(<<Color2(green,Create a link to a resource that describes macros)>>)'' that apply to this header. |
| Line 31: | Line 35: |
| ''-or-'' === Functions === |
DRAFT |
Querying SDL Version
Primary Include: 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
)
There are four (4) 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 minor macro that converts version numbers into a numeric value.
- A minor macro that produces the current SDL version number (major.minor.patchlevel)
- A minor macro that confirms whether a program was compiled with a version no older than the specified version.
