aatrigonColor function

bool aatrigonColor(
  1. Pointer<SdlRenderer> renderer,
  2. double x1,
  3. double y1,
  4. double x2,
  5. double y2,
  6. double x3,
  7. double y3,
  8. SdlxColor color, {
  9. int blendMode = SDL_BLENDMODE_BLEND,
})

Implementation

bool aatrigonColor(
  Pointer<SdlRenderer> renderer,
  double x1,
  double y1,
  double x2,
  double y2,
  double x3,
  double y3,
  SdlxColor color, {
  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 = aapolygonColor(renderer, points, color, blendMode: blendMode);
  return result;
}