예제 #1
0
파일: VGState.cs 프로젝트: liwq-net/XnaVG
        internal VGState(VGDevice device)
        {
            IsActive = false;
            Device = device;
            Projection = new VGMatrixStack(2);
            ImageToSurface = new VGMatrixStack(2);
            GlyphToSurface = new VGMatrixStack(3);
            PathToSurface = new VGMatrixStack(4);
            PathToFillPaint = new VGMatrixStack(4);
            PathToTextPaint = new VGMatrixStack(4);
            PathToStrokePaint = new VGMatrixStack(4);
            ColorTransformation = new VGCxFormStack(4);

            SetAntialiasing(VGAntialiasing.Better);
            ResetDefaultValues();
        }
예제 #2
0
 internal VGCxFormStack(VGCxFormStack other)
 {
     CxForms = new Stack<VGCxForm>(other.CxForms.Reverse());
 }