示例#1
0
文件: Scene.cs 项目: SIRprise/neon2d
 public EllipsStruct(Shape.Ellipse e, int x, int y, Pen p)
 {
     ell    = e;
     this.x = x;
     this.y = y;
     this.p = p;
 }
示例#2
0
文件: Scene.cs 项目: neon2d/neonGL
        public void render(Shape.Ellipse ellipse, int thickness = 1, Brush color = null)
        {
            Pen pcolor;

            if (color == null)
            {
                pcolor = new Pen(Brushes.Black, thickness);
            }
            else
            {
                pcolor = new Pen(color, thickness);
            }
            EllipsStruct es = new EllipsStruct(ellipse, pcolor);

            renderlist.Add(es);
            renderct++;
        }
示例#3
0
文件: Scene.cs 项目: neon2d/neonGL
 public EllipsStruct(Shape.Ellipse e, Pen c)
 {
     ell = e;
     p   = c;
 }