示例#1
0
文件: Scene.cs 项目: neon2d/neonGL
        //THE ACTUAL SHAPE RENDERING IS HERE

        public void render(Shape.Line line, int thickness = 1, Brush color = null)
        {
            Pen pcolor;

            if (color == null)
            {
                pcolor = new Pen(Brushes.Black, thickness);
            }
            else
            {
                pcolor = new Pen(color, thickness);
            }
            LineStruct ls = new LineStruct(line, pcolor);

            renderlist.Add(ls);
            renderct++;
        }
示例#2
0
文件: Scene.cs 项目: neon2d/neonGL
 public LineStruct(Shape.Line l, Pen c)
 {
     line = l;
     p    = c;
 }
示例#3
0
文件: Scene.cs 项目: SIRprise/neon2d
 public LineStruct(Shape.Line l, Pen p)
 {
     line   = l;
     this.p = p;
 }