예제 #1
0
파일: Scene.cs 프로젝트: SIRprise/neon2d
 public RectStruct(Shape.Rectangle r, int x, int y, Pen p)
 {
     rect   = r;
     this.x = x;
     this.y = y;
     this.p = p;
 }
예제 #2
0
파일: Scene.cs 프로젝트: neon2d/neonGL
        public void render(Shape.Rectangle rect, int thickness = 1, Brush color = null)
        {
            Pen pcolor;

            if (color == null)
            {
                pcolor = new Pen(Brushes.Black, thickness);
            }
            else
            {
                pcolor = new Pen(color, thickness);
            }
            RectStruct rs = new RectStruct(rect, pcolor);

            renderlist.Add(rs);
            renderct++;
        }
예제 #3
0
파일: Scene.cs 프로젝트: neon2d/neonGL
 public RectStruct(Shape.Rectangle r, Pen c)
 {
     rect = r;
     p    = c;
 }