Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-04-15 05:25:13
Size: 831
Editor: SheenaSmith
Comment: edits w/ Sam
Revision 5 as of 2010-04-20 18:10:24
Size: 914
Editor: SheenaSmith
Comment: add code example from SDL_GetVersion as Include
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
<<Include(SDL_GetVersion, , , from="== Code Examples ==", to="== Remarks ==")>>

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

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);

You can add your code example here

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)


CategoryStruct

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