renderUnicodeShadedWrapped method

Pointer<SdlSurface> renderUnicodeShadedWrapped(
  1. Pointer<Uint16> text,
  2. int fg,
  3. int bg,
  4. int wrapLength,
)

Implementation

Pointer<SdlSurface> renderUnicodeShadedWrapped(
    Pointer<Uint16> text, int fg, int bg, int wrapLength) {
  var fgPointer = calloc<SdlColor>()..fromU32(fg);
  var bgPointer = calloc<SdlColor>()..fromU32(bg);
  // 1926
  var result = ttfRenderUnicodeShadedWrapped(
      this, text, fgPointer.ref, bgPointer.ref, wrapLength);
  calloc.free(fgPointer);
  calloc.free(bgPointer);
  return result;
}