DrawTextPro method

  1. @override
void DrawTextPro(
  1. FontD font,
  2. MemoryPointer<RChar> text,
  3. Vector2D position,
  4. Vector2D origin,
  5. double rotation,
  6. double fontSize,
  7. double spacing,
  8. ColorD tint,
)
override

Draw text using Font and pro parameters (rotation)

Implementation

@override
void DrawTextPro(
  FontD font,
  MemoryPointer<RChar> text,
  Vector2D position,
  Vector2D origin,
  double rotation,
  double fontSize,
  double spacing,
  ColorD tint,
) => _ffi.DrawTextPro(
  $.Font$.Ref1(font).asNativePointer<FontC>().ref,
  text.asNativePointer(),
  $.Vector2$.Ref1(position).asNativePointer<Vector2C>().ref,
  $.Vector2$.Ref2(origin).asNativePointer<Vector2C>().ref,
  rotation,
  fontSize,
  spacing,
  $.Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);