DrawTriangle3D method
Draw a color-filled triangle (vertex in counter-clockwise order!)
Implementation
@override
void DrawTriangle3D(
Vector3D v1,
Vector3D v2,
Vector3D v3,
ColorD color,
) => _ffi.DrawTriangle3D(
$.Vector3$.Ref1(v1).asNativePointer<Vector3C>().ref,
$.Vector3$.Ref2(v2).asNativePointer<Vector3C>().ref,
$.Vector3$.Ref3(v3).asNativePointer<Vector3C>().ref,
$.Color$.Ref1(color).asNativePointer<ColorC>().ref,
);