ttfByteSwappedUnicode function

void ttfByteSwappedUnicode(
  1. bool swapped
)

Tell SDL_ttf whether UNICODE text is generally byteswapped.

A UNICODE BOM character in a string will override this setting for the remainder of that string.

\param swapped boolean to indicate whether text is byteswapped

\since This function is available since SDL_ttf 2.0.12.

extern DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(SDL_bool swapped)

Implementation

void ttfByteSwappedUnicode(bool swapped) {
  final ttfByteSwappedUnicodeLookupFunction = libSdl2Ttf.lookupFunction<
      Void Function(Int32 swapped),
      void Function(int swapped)>('TTF_ByteSwappedUNICODE');
  return ttfByteSwappedUnicodeLookupFunction(swapped ? 1 : 0);
}