|
Size: 1135
Comment: temp test
|
Size: 1050
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT || |
|
| Line 14: | Line 12: |
| ||Uint8 ||'''patch''' ||update version ^(patchlevel)^|| | ||Uint8 ||'''patch''' ||update version (patchlevel)|| |
SDL_version
A structure that contains information about the version of SDL in use.
Data Fields
Uint8 |
major |
major version |
Uint8 |
minor |
minor version |
Uint8 |
patch |
update version (patchlevel) |
Code Examples
SDL_version compiled;
SDL_version linked;
SDL_VERSION(&compiled);
SDL_GetVersion(&linked);
printf("We compiled against SDL version %d.%d.%d ...\n",
compiled.major, compiled.minor, compiled.patch);
printf("But we are linking against SDL version %d.%d.%d.\n",
linked.major, linked.minor, linked.patch);
Remarks
Represents the library's version as three levels:
- major revision (increments with massive changes, additions, and enhancements)
- minor revision (increments with backwards-compatible changes to the major revision), and
- patchlevel (increments with fixes to the minor revision)
The macro SDL_VERSION can be used to populate this structure with information.
Related Macros
