DrawTexturePro method

  1. @override
void DrawTexturePro(
  1. Texture texture,
  2. Rectangle source,
  3. Rectangle dest,
  4. Vector2 origin,
  5. double rotation,
  6. Color tint,
)
override

Draw a part of a texture defined by a rectangle with 'pro' parameters

Implementation

@override
void DrawTexturePro(
  Texture texture,
  Rectangle source,
  Rectangle dest,
  Vector2 origin,
  double rotation,
  Color tint,
) => _ffi.DrawTexturePro(
  Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  Rectangle$.Ref1(source).asNativePointer<RectangleC>().ref,
  Rectangle$.Ref2(dest).asNativePointer<RectangleC>().ref,
  Vector2$.Ref1(origin).asNativePointer<Vector2C>().ref,
  rotation,
  Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);