예제 #1
0
파일: sDrawCall.cs 프로젝트: zeta1999/Vrmac
        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));
        }
예제 #2
0
 public DrawCallType(eBrush brush, eMesh mesh, eClearTypeKind clearType)
 {
     value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)clearType);
 }
예제 #3
0
 public DrawCallType(eBrush brush, eMesh mesh, eVaaKind vaa)
 {
     value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)vaa);
 }