Esempio n. 1
0
        public void Update(Draw d, object[] selected)
        {
            Update(d);

            d.MoveCoords(viewport.X, viewport.Y);
            dPen pen = new dPen(new dColor(Color.Black.R, Color.Black.G, Color.Black.B), dPenStyle.Dashed);

            foreach (GameObject go in AllElements)
            {
                if (Array.IndexOf<object>(selected, go) != -1)
                    d.DrawRectangle(pen, go.Left-2, go.Top-2, go.Width+3, go.Height+3);
            }
            d.MoveCoords(-viewport.X, -viewport.Y);
        }
Esempio n. 2
0
 public override void FillRectangle(dPen pen, float x, float y, int width, int height)
 {
     g.FillRectangle(pen.ToGDIBrush(), (int)x, (int)y, width, height);
 }
Esempio n. 3
0
 public abstract void FillRectangle(dPen pen, float x, float y, int width, int height);
Esempio n. 4
0
 public override void DrawRectangle(dPen pen, float x, float y, int width, int height)
 {
     g.DrawRectangle(pen.ToGDIPen(), (int)x, (int)y, width, height);
 }