Ejemplo n.º 1
0
        public void RenderText(ICollection <Vertex> vertices)
        {
            State state = _nvg.stateStack.CurrentState;
            Paint paint = state.Fill;

            paint = Paint.ForText(_fontImages[_fontImageIdx], paint);

            paint.PremultiplyAlpha(state.Alpha);

            _nvg.renderer.Triangles(paint, state.CompositeOperation, state.Scissor, vertices, _nvg.pixelRatio.FringeWidth);

            _nvg.FrameMeta.Update((uint)vertices.Count / 3, 0, 0, 1);
        }