DrawText method

void DrawText(
  1. String text,
  2. num posX,
  3. num posY,
  4. num fontSize,
  5. ColorD color,
)

Implementation

void DrawText(
  String text,
  num posX,
  num posY,
  num fontSize,
  ColorD color,
) => run(
  () => 'DrawText($text, $posX, $posY, $fontSize, $color)',
  () => rl.Core.DrawText(
    refStr(text),
    posX.toInt(),
    posY.toInt(),
    fontSize.toInt(),
    _refColor1(color).ref,
  ),
);