DrawTextPro method

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

Draw text using Font and pro parameters (rotation)

Implementation

@override
void DrawTextPro(
  Font font,
  MemoryPointer<RChar> text,
  Vector2 position,
  Vector2 origin,
  double rotation,
  double fontSize,
  double spacing,
  Color 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,
);