renderTextLcdWrapped method

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

Implementation

Pointer<SdlSurface> renderTextLcdWrapped(
    String text, int fg, int bg, int wrapLength) {
  var fgPointer = calloc<SdlColor>()..fromU32(fg);
  var bgPointer = calloc<SdlColor>()..fromU32(bg);
  // 2559
  var result = ttfRenderTextLcdWrapped(
      this, text, fgPointer.ref, bgPointer.ref, wrapLength);
  calloc.free(fgPointer);
  calloc.free(bgPointer);
  return result;
}