DrawText method

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

Implementation

@override
void DrawText(
  String text,
  num posX,
  num posY,
  num fontSize,
  ColorD color,
) => run(
  () => RaylibDebugLabels.DrawText(text, posX, posY, fontSize, color),
  () => rl.Core.DrawText(
    rl.Temp.String$.ValueOrNull(text),
    posX.toInt(),
    posY.toInt(),
    fontSize.toInt(),
    rl.Temp.Color$.Ref1(color).ref,
  ),
);