renderGlyphShaded method

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

Implementation

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