Module version

Available on crate feature dep_sdl3 only.
Expand description

Functionality to query the current SDL version, both as headers the app was compiled against, and a library the app is linked to.

Constants§

SDL_MAJOR_VERSION
The current major version of SDL headers.
SDL_MICRO_VERSION
The current micro (or patchlevel) version of the SDL headers.
SDL_MINOR_VERSION
The current minor version of the SDL headers.
SDL_VERSION
This is the version number macro for the current SDL version.

Functions§

SDL_GetRevision
Get the code revision of SDL that is linked against your program.
SDL_GetVersion
Get the version of SDL that is linked against your program.
SDL_VERSIONNUM
This macro turns the version numbers into a numeric value.
SDL_VERSIONNUM_MAJOR
This macro extracts the major version from a version number
SDL_VERSIONNUM_MICRO
This macro extracts the micro version from a version number
SDL_VERSIONNUM_MINOR
This macro extracts the minor version from a version number
SDL_VERSION_ATLEAST
This macro will evaluate to true if compiled with SDL at least X.Y.Z.