Wiki Page Content

Differences between revisions 17 and 18
Revision 17 as of 2010-08-24 05:54:35
Size: 1135
Editor: SheenaSmith
Comment: temp test
Revision 18 as of 2010-08-29 19:42:13
Size: 1050
Editor: SheenaSmith
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.


CategoryStruct, CategoryVersionStruct

None: SDL_version (last edited 2010-09-03 00:19:43 by SheenaSmith)

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