public static sDrawCall drawText(Order order, ref Matrix3x2 trans, int color, int backgroundColor, bool opaqueBackground, float physicalPixelSize, eTextRendering textRendering) { eMesh mesh = (textRendering == eTextRendering.GrayscaleTransformed) ? eMesh.TransformedText : eMesh.GlyphRun; eBrush brush = opaqueBackground ? eBrush.OpaqueColor : eBrush.SolidColor; eClearTypeKind clearTypeKind; if (textRendering == eTextRendering.ClearTypeHorizontal) { clearTypeKind = eClearTypeKind.Straight; } else { clearTypeKind = eClearTypeKind.None; } DrawCallType dc = new DrawCallType(brush, mesh, clearTypeKind); return(new sDrawCall(dc, ref trans, physicalPixelSize, color, backgroundColor, MiscUtils.one, order)); }
public DrawCallType(eBrush brush, eMesh mesh, eClearTypeKind clearType) { value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)clearType); }
public DrawCallType(eBrush brush, eMesh mesh, eVaaKind vaa) { value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)vaa); }