renderUnicodeLcd method

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

Implementation

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