DrawTexturePro method

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

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

Implementation

void DrawTexturePro(
  Texture texture,
  Rectangle source,
  Rectangle dest,
  Vector2 origin,
  num rotation,
  Color tint,
) => run(
  () => _debugLabels.DrawTexturePro(texture, source, dest, origin, rotation, tint),
  () => _flat.DrawTexturePro(
    texture,
    source,
    dest,
    origin,
    rotation.toDouble(),
    tint,
  ),
);