Esempio n. 1
0
        public virtual void Update()
        {
            plines.Clear();
            for (int c = 0; c < ppoints.Count - 1; c++)
            {
                Vector2 currentPoint = ppoints[c];

                XNALine line = new XNALine
                {
                    Start       = currentPoint,
                    End         = ppoints[c + 1],
                    Stroke      = Stroke,
                    StrokeWidth = StrokeWidth
                };
                plines.Add(line);
            }
            pendPointTexture = XNACircle.CreateTexture(pdevice, (int)MathUtils.Floor(pstrokeWidth));
            pchanged         = false;
        }
Esempio n. 2
0
 public override void Update()
 {
     plines.Clear();
     for (int c = 0; c < ppoints.Count; c++)
     {
         XNALine line = new XNALine
         {
             Start       = ppoints[c],
             End         = (c == ppoints.Count - 1 ? ppoints[0] : ppoints[c + 1]),
             Stroke      = Stroke,
             StrokeWidth = StrokeWidth
         };
         plines.Add(line);
     }
     GetFillTexture();
     if (StrokeWidth > 0)
     {
         pendPointTexture = XNACircle.CreateTexture(pdevice, (int)MathUtils.Floor(StrokeWidth));
     }
     pchanged = false;
 }