Function SDL_VERSIONNUM

pub const fn SDL_VERSIONNUM(major: i32, minor: i32, patch: i32) -> i32
Available on crate feature dep_sdl3 only.
Expand description

This macro turns the version numbers into a numeric value.

(1,2,3) becomes 1002003.

§Parameters

  • major: the major version number.
  • minor: the minorversion number.
  • patch: the patch version number.

§Availability

This macro is available since SDL 3.2.0.