World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | SDL_version |
Information the version of SDL in use. Подробнее... | |
Определения типов | |
typedef struct SDL_version | SDL_version |
Information the version of SDL in use. Подробнее... | |
Функции | |
DECLSPEC void SDLCALL | SDL_GetVersion (SDL_version *ver) |
Get the version of SDL that is linked against your program. Подробнее... | |
const DECLSPEC char *SDLCALL | SDL_GetRevision (void) |
Get the code revision of SDL that is linked against your program. Подробнее... | |
DECLSPEC int SDLCALL | SDL_GetRevisionNumber (void) |
Get the revision number of SDL that is linked against your program. Подробнее... | |
This header defines the current SDL version.
См. определение в файле SDL_version.h
typedef struct SDL_version SDL_version |
Information the version of SDL in use.
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).
DECLSPEC void SDLCALL SDL_GetVersion | ( | SDL_version * | ver | ) |
Get the version of SDL that is linked against your program.
If you are linking to SDL dynamically, then it is possible that the current version will be different than the version you compiled against. This function returns the current version, while SDL_VERSION() is a macro that tells you what version you compiled with.
This function may be called safely at any time, even before SDL_Init().
const DECLSPEC char* SDLCALL SDL_GetRevision | ( | void | ) |
Get the code revision of SDL that is linked against your program.
Returns an arbitrary string (a hash value) uniquely identifying the exact revision of the SDL library in use, and is only useful in comparing against other revisions. It is NOT an incrementing number.
DECLSPEC int SDLCALL SDL_GetRevisionNumber | ( | void | ) |
Get the revision number of SDL that is linked against your program.
Returns a number uniquely identifying the exact revision of the SDL library in use. It is an incrementing number based on commits to hg.libsdl.org.