DrawTextPro method

  1. @override
void DrawTextPro(
  1. FontD font,
  2. String text,
  3. Vector2D position,
  4. Vector2D origin,
  5. num rotation,
  6. num fontSize,
  7. num spacing,
  8. ColorD tint,
)
override

Implementation

@override
void DrawTextPro(
  FontD font,
  String text,
  Vector2D position,
  Vector2D origin,
  num rotation,
  num fontSize,
  num spacing,
  ColorD tint,
) => run(
  () => RaylibDebugLabels.DrawTextPro(font, text, position, origin, rotation, fontSize, spacing, tint),
  () => rl.Core.DrawTextPro(
    rl.Temp.Font$.Ref1(font).ref,
    rl.Temp.String$.ValueOrNull(text),
    rl.Temp.Vector2$.Ref1(position).ref,
    rl.Temp.Vector2$.Ref2(origin).ref,
    rotation.toDouble(),
    fontSize.toDouble(),
    spacing.toDouble(),
    rl.Temp.Color$.Ref1(tint).ref,
  ),
);