ttfGetFreeTypeVersion function

void ttfGetFreeTypeVersion(
  1. Pointer<Int32> major,
  2. Pointer<Int32> minor,
  3. Pointer<Int32> patch
)

Query the version of the FreeType library in use.

TTF_Init() should be called before calling this function.

\param major to be filled in with the major version number. Can be NULL. \param minor to be filled in with the minor version number. Can be NULL. \param patch to be filled in with the param version number. Can be NULL.

\since This function is available since SDL_ttf 2.0.18.

\sa TTF_Init

extern DECLSPEC void SDLCALL TTF_GetFreeTypeVersion(int *major, int *minor, int *patch)

Implementation

void ttfGetFreeTypeVersion(
    Pointer<Int32> major, Pointer<Int32> minor, Pointer<Int32> patch) {
  final ttfGetFreeTypeVersionLookupFunction = libSdl2Ttf.lookupFunction<
      Void Function(
          Pointer<Int32> major, Pointer<Int32> minor, Pointer<Int32> patch),
      void Function(Pointer<Int32> major, Pointer<Int32> minor,
          Pointer<Int32> patch)>('TTF_GetFreeTypeVersion');
  return ttfGetFreeTypeVersionLookupFunction(major, minor, patch);
}