Module cocos.audio.SDL.version

Functions related to the SDL shared library version.

Classes

  SDL_version
Version structure.

Functions

int SDL_VERSIONNUM(major, minor, patch)
Turn the version numbers into a numeric value.
bool SDL_VERSION_ATLEAST(major, minor, patch)
Determine if the SDL library is at least the given version.

Variables

  __package__ = 'cocos.audio.SDL'

Function Details

SDL_VERSIONNUM

SDL_VERSIONNUM(major, minor, patch)

Turn the version numbers into a numeric value.

For example:

>>> SDL_VERSIONNUM(1, 2, 3)
1203
Parameters:
major
: int
minor
: int
patch
: int
Returns: int

SDL_VERSION_ATLEAST

SDL_VERSION_ATLEAST(major, minor, patch)
Determine if the SDL library is at least the given version.
Parameters:
major
: int
minor
: int
patch
: int
Returns: bool