sdlGetVersion function

void sdlGetVersion(
  1. Pointer<SdlVersion> 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.

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

\param ver the SDL_version structure that contains the version information

\since This function is available since SDL 2.0.0.

\sa SDL_GetRevision

extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver)

Implementation

void sdlGetVersion(Pointer<SdlVersion> ver) {
  final sdlGetVersionLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlVersion> ver),
      void Function(Pointer<SdlVersion> ver)>('SDL_GetVersion');
  return sdlGetVersionLookupFunction(ver);
}