Wiki Page Content

Differences between revisions 12 and 13
Revision 12 as of 2010-08-23 22:22:03
Size: 1135
Editor: SheenaSmith
Comment: added header-specific Category link
Revision 13 as of 2010-08-24 02:04:48
Size: 1152
Editor: SheenaSmith
Comment: temp test
Deletions are marked like this. Additions are marked like this.
Line 38: Line 38:
[[CategoryStruct]], [[CategoryVersionStruct]] [[CategoryStruct]], [[#CategoryVersion|CategoryVersionStruct]]

DRAFT

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