filledTrigonRgba function
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,
})
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;
}