World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл SDL_version.h

См. исходные тексты.

Классы

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

Типы

◆ SDL_version

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

См. также
SDL_VERSION
SDL_GetVersion

Функции

◆ SDL_GetVersion()

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.

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 linked against SDL version %d.%d.%d.\n",
linked.major, linked.minor, linked.patch);

This function may be called safely at any time, even before SDL_Init().

См. также
SDL_VERSION

◆ SDL_GetRevision()

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.

◆ SDL_GetRevisionNumber()

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.

SDL_version
Information the version of SDL in use.
Definition: SDL_version.h:51
SDL_version::minor
Uint8 minor
Definition: SDL_version.h:54
SDL_GetVersion
DECLSPEC void SDLCALL SDL_GetVersion(SDL_version *ver)
Get the version of SDL that is linked against your program.
SDL_version::patch
Uint8 patch
Definition: SDL_version.h:55
SDL_version::major
Uint8 major
Definition: SDL_version.h:53