ttfLinkedVersion function

Pointer<SdlVersion> ttfLinkedVersion()

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

This function gets the version of the dynamically linked SDL_ttf library. This is separate from the SDL_TTF_VERSION() macro, which tells you what version of the SDL_ttf 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_ttf 2.0.12.

extern DECLSPEC const SDL_version * SDLCALL TTF_Linked_Version(void)

Implementation

Pointer<SdlVersion> ttfLinkedVersion() {
  final ttfLinkedVersionLookupFunction = libSdl2Ttf.lookupFunction<
      Pointer<SdlVersion> Function(),
      Pointer<SdlVersion> Function()>('TTF_Linked_Version');
  return ttfLinkedVersionLookupFunction();
}