DrawTexturePro method

  1. @override
void DrawTexturePro(
  1. TextureD texture,
  2. RectangleD source,
  3. RectangleD dest,
  4. Vector2D origin,
  5. num rotation,
  6. ColorD tint,
)
override

Implementation

@override
void DrawTexturePro(
  TextureD texture,
  RectangleD source,
  RectangleD dest,
  Vector2D origin,
  num rotation,
  ColorD tint,
) => run(
  () => RaylibDebugLabels.DrawTexturePro(texture, source, dest, origin, rotation, tint),
  () {
    rl.Core.DrawTexturePro(
      rl.Temp.Texture$.Ref1(texture).ref,
      rl.Temp.Rectangle$.Ref1(source).ref,
      rl.Temp.Rectangle$.Ref2(dest).ref,
      rl.Temp.Vector2$.Ref1(origin).ref,
      rotation.toDouble(),
      rl.Temp.Color$.Ref1(tint).ref,
    );
  },
);