コード例 #1
0
ファイル: Options.cs プロジェクト: zeta1999/Vrmac
 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;
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }