trigonRgba function
bool
trigonRgba(
- 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 trigonRgba(
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 vx = calloc<Int16>(3);
final vy = calloc<Int16>(3);
vx[0] = x1.toInt();
vx[1] = x2.toInt();
vx[2] = x3.toInt();
vy[0] = y1.toInt();
vy[1] = y2.toInt();
vy[2] = y3.toInt();
final result = polygonRgba(
renderer,
vx,
vy,
3,
r,
g,
b,
a,
blendMode: blendMode,
);
calloc
..free(vx)
..free(vy);
return result;
}