polygonRgba method

bool polygonRgba(
  1. List<Point<double>> ps,
  2. int r,
  3. int g,
  4. int b,
  5. int a, {
  6. int blendMode = SDL_BLENDMODE_BLEND,
})

Implementation

bool polygonRgba(
  List<math.Point<double>> ps,
  int r,
  int g,
  int b,
  int a, {
  int blendMode = SDL_BLENDMODE_BLEND,
}) {
  final xsPointer = ps.callocInt16X();
  final ysPointer = ps.callocInt16Y();
  final result = gfx.polygonRgba(
    this,
    xsPointer,
    ysPointer,
    ps.length,
    r,
    g,
    b,
    a,
    blendMode: blendMode,
  );
  calloc
    ..free(xsPointer)
    ..free(ysPointer);
  return result;
}