public Options(ref Matrix3x2 transform, float precision, float pixel, eBuildFilledMesh fill, sStrokeInfo?stroke, bool strokeSeparate) { this.transform = transform; this.precision = precision; this.pixel = pixel; this.fill = fill; this.stroke = stroke ?? default; separateStrokeMesh = strokeSeparate; }
sPendingDrawCall iTesselator.fillAndStroke(iPathGeometry path, ref Matrix3x2 tform, float pixel, eBuildFilledMesh fillOptions, sStrokeInfo stroke, int instance) { var job = postJob(path, instance, ref tform, fillOptions, pixel, stroke); if (!fillOptions.HasFlag(eBuildFilledMesh.BrushHasTransparency)) { return(new sPendingDrawCall(job, eRenderPassFlags.Opaque | eRenderPassFlags.Transparent, 2)); } return(new sPendingDrawCall(job, eRenderPassFlags.Transparent, 1)); }
sPendingDrawCall iTesselator.stroke(iPathGeometry path, ref Matrix3x2 tform, float pixel, sStrokeInfo stroke, int instance) { var job = postJob(path, instance, ref tform, eBuildFilledMesh.None, pixel, stroke); return(new sPendingDrawCall(job, eRenderPassFlags.Transparent, 1)); }