filledTrigonRgba function

bool filledTrigonRgba(
  1. Pointer<SdlRenderer> renderer,
  2. double x1,
  3. double y1,
  4. double x2,
  5. double y2,
  6. double x3,
  7. double y3,
  8. int r,
  9. int g,
  10. int b,
  11. int a, {
  12. int blendMode = SDL_BLENDMODE_BLEND,
})

Implementation

bool filledTrigonRgba(
  Pointer<SdlRenderer> renderer,
  double x1,
  double y1,
  double x2,
  double y2,
  double x3,
  double y3,
  int r,
  int g,
  int b,
  int a, {
  int blendMode = SDL_BLENDMODE_BLEND,
}) {
  final points = List<SdlxFPoint>.generate(3, (index) => SdlxFPoint(0, 0));

  points[0].x = x1;
  points[1].x = x2;
  points[2].x = x3;
  points[0].y = y1;
  points[1].y = y2;
  points[2].y = y3;

  final result = filledPolygonRgba(
    renderer,
    points,
    r,
    g,
    b,
    a,
    blendMode: blendMode,
  );
  return result;
}