mixLinkedVersion function

Pointer<SdlVersion> mixLinkedVersion()

Query the version of SDL_mixer that the program is linked against.

This function gets the version of the dynamically linked SDL_mixer library. This is separate from the SDL_MIXER_VERSION() macro, which tells you what version of the SDL_mixer headers you compiled against.

This returns static internal data; do not free or modify it!

\returns a pointer to the version information.

\since This function is available since SDL_mixer 2.0.0.

extern DECLSPEC const SDL_version * SDLCALL Mix_Linked_Version(void)

Implementation

Pointer<SdlVersion> mixLinkedVersion() {
  final mixLinkedVersionLookupFunction = libSdl2Mixer.lookupFunction<
      Pointer<SdlVersion> Function(),
      Pointer<SdlVersion> Function()>('Mix_Linked_Version');
  return mixLinkedVersionLookupFunction();
}