imgVersion function

int imgVersion()

This function gets the version of the dynamically linked SDL_image library.

\returns SDL_image version.

\since This function is available since SDL_image 3.0.0.

extern SDL_DECLSPEC int SDLCALL IMG_Version(void)

Implementation

int imgVersion() {
  final imgVersionLookupFunction = libSdl3Image
      .lookupFunction<Int32 Function(), int Function()>('IMG_Version');
  return imgVersionLookupFunction();
}