DrawPoly method

  1. @override
void DrawPoly(
  1. Vector2D center,
  2. num sides,
  3. num radius,
  4. num rotation,
  5. ColorD color,
)
override

Implementation

@override
void DrawPoly(
  Vector2D center,
  num sides,
  num radius,
  num rotation,
  ColorD color,
) => run(
  () => RaylibDebugLabels.DrawPoly(center, sides, radius, rotation, color),
  () => rl.Core.DrawPoly(
    rl.Temp.Vector2$.Ref1(center).ref,
    sides.toInt(),
    radius.toDouble(),
    rotation.toDouble(),
    rl.Temp.Color$.Ref1(color).ref,
  ),
);