| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Version
Description
Functionality to query the current SDL version, both as headers the app was compiled against, and a library the app is linked to. The current major version of SDL headers.
If this were SDL version 3.2.1, this value would be 3.
Since: 3.2.0
Synopsis
- sDL_MAJOR_VERSION :: CInt
- sDL_MINOR_VERSION :: CInt
- sDL_MICRO_VERSION :: CInt
- sDL_VERSIONNUM :: (Add (MultRes a0 CInt) (MultRes b1 CInt), Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Mult b1 CInt, Mult a0 CInt) => a0 -> b1 -> c2 -> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2
- sDL_VERSIONNUM_MAJOR :: Div a0 CInt => a0 -> DivRes a0 CInt
- sDL_VERSIONNUM_MINOR :: (Div a0 CInt, Rem (DivRes a0 CInt) CInt) => a0 -> RemRes (DivRes a0 CInt) CInt
- sDL_VERSIONNUM_MICRO :: Rem a0 CInt => a0 -> RemRes a0 CInt
- sDL_VERSION :: CInt
- sDL_VERSION_ATLEAST :: (RelOrd CInt (AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2), Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Add (MultRes a0 CInt) (MultRes b1 CInt), Mult a0 CInt, Mult b1 CInt) => a0 -> b1 -> c2 -> CInt
Documentation
sDL_MAJOR_VERSION :: CInt Source #
- C declaration
macro SDL_MAJOR_VERSION, defined atSDL3/SDL_version.h 47:9
sDL_MINOR_VERSION :: CInt Source #
The current minor version of the SDL headers.
If this were SDL version 3.2.1, this value would be 2.
- C declaration
macro SDL_MINOR_VERSION, defined atSDL3/SDL_version.h 56:9
Since: 3.2.0
sDL_MICRO_VERSION :: CInt Source #
The current micro (or patchlevel) version of the SDL headers.
If this were SDL version 3.2.1, this value would be 1.
- C declaration
macro SDL_MICRO_VERSION, defined atSDL3/SDL_version.h 65:9
Since: 3.2.0
sDL_VERSIONNUM :: (Add (MultRes a0 CInt) (MultRes b1 CInt), Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Mult b1 CInt, Mult a0 CInt) => a0 -> b1 -> c2 -> AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2 Source #
This macro turns the version numbers into a numeric value.
(1,2,3) becomes 1002003.
major- the major version number.
minor- the minorversion number.
patch- the patch version number.
- C declaration
macro SDL_VERSIONNUM, defined atSDL3/SDL_version.h 78:9
Since: 3.2.0
sDL_VERSIONNUM_MAJOR :: Div a0 CInt => a0 -> DivRes a0 CInt Source #
This macro extracts the major version from a version number
1002003 becomes 1.
version- the version number.
- Thread safety
- It is safe to call this macro from any thread.
- C declaration
macro SDL_VERSIONNUM_MAJOR, defined atSDL3/SDL_version.h 92:9
Since: 3.2.0
sDL_VERSIONNUM_MINOR :: (Div a0 CInt, Rem (DivRes a0 CInt) CInt) => a0 -> RemRes (DivRes a0 CInt) CInt Source #
This macro extracts the minor version from a version number
1002003 becomes 2.
version- the version number.
- Thread safety
- It is safe to call this macro from any thread.
- C declaration
macro SDL_VERSIONNUM_MINOR, defined atSDL3/SDL_version.h 105:9
Since: 3.2.0
sDL_VERSIONNUM_MICRO :: Rem a0 CInt => a0 -> RemRes a0 CInt Source #
This macro extracts the micro version from a version number
1002003 becomes 3.
version- the version number.
- Thread safety
- It is safe to call this macro from any thread.
- C declaration
macro SDL_VERSIONNUM_MICRO, defined atSDL3/SDL_version.h 118:9
Since: 3.2.0
sDL_VERSION :: CInt Source #
This is the version number macro for the current SDL version.
- Thread safety
- It is safe to call this macro from any thread.
- See also
sDL_GetVersion- C declaration
macro SDL_VERSION, defined atSDL3/SDL_version.h 129:9
Since: 3.2.0
sDL_VERSION_ATLEAST :: (RelOrd CInt (AddRes (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2), Add (AddRes (MultRes a0 CInt) (MultRes b1 CInt)) c2, Add (MultRes a0 CInt) (MultRes b1 CInt), Mult a0 CInt, Mult b1 CInt) => a0 -> b1 -> c2 -> CInt Source #
This macro will evaluate to true if compiled with SDL at least X.Y.Z.
- Thread safety
- It is safe to call this macro from any thread.
- C declaration
macro SDL_VERSION_ATLEAST, defined atSDL3/SDL_version.h 139:9
Since: 3.2.0