renderGlyph32Shaded method

Pointer<SdlSurface> renderGlyph32Shaded(
  1. int ch,
  2. int fg,
  3. int bg
)

Implementation

Pointer<SdlSurface> renderGlyph32Shaded(int ch, int fg, int bg) {
  var fgPointer = calloc<SdlColor>()..fromU32(fg);
  var bgPointer = calloc<SdlColor>()..fromU32(bg);
  // 2019
  var result = ttfRenderGlyph32Shaded(this, ch, fgPointer.ref, bgPointer.ref);
  calloc.free(fgPointer);
  calloc.free(bgPointer);
  return result;
}