renderUtf8SolidWrapped method

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

Implementation

Pointer<SdlSurface> renderUtf8SolidWrapped(
    String text, int fg, int wrapLength) {
  var fgPointer = calloc<SdlColor>()..fromU32(fg);
  // 1512
  var result =
      ttfRenderUtf8SolidWrapped(this, text, fgPointer.ref, wrapLength);
  calloc.free(fgPointer);
  return result;
}