DrawTriangleFan method

  1. @override
void DrawTriangleFan(
  1. StructPointer<Vector2D> points,
  2. int pointCount,
  3. ColorD color
)
override

Draw a triangle fan defined by points (first vertex is the center)

Implementation

@override
void DrawTriangleFan(
  StructPointer<Vector2D> points,
  int pointCount,
  ColorD color,
) => _ffi.DrawTriangleFan(
  points.asNativePointer(),
  pointCount,
  $.Color$.Ref1(color).asNativePointer<ColorC>().ref
);