A structure that contains information about the version of SDL in use.
Uint8 | major | major version |
Uint8 | minor | minor version |
Uint8 | patch | update version (patchlevel) |
SDL_version compiled;
SDL_version linked;
SDL_VERSION(&compiled);
SDL_GetVersion(&linked);"We compiled against SDL version %u.%u.%u ...\n",
SDL_Log(
compiled.major, compiled.minor, compiled.patch);"But we are linking against SDL version %u.%u.%u.\n",
SDL_Log( linked.major, linked.minor, linked.patch);
Represents the library's version as three levels:
The macro SDL_VERSION can be used to populate this structure with information.
CategoryStruct, CategoryVersion