ttfVersion function

int ttfVersion()

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

\returns SDL_ttf version.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_ttf 3.0.0.

extern SDL_DECLSPEC int SDLCALL TTF_Version(void)

Implementation

int ttfVersion() {
  final ttfVersionLookupFunction = libSdl3Ttf
      .lookupFunction<Int32 Function(), int Function()>('TTF_Version');
  return ttfVersionLookupFunction();
}