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); }
public override void FillRectangle(dPen pen, float x, float y, int width, int height) { g.FillRectangle(pen.ToGDIBrush(), (int)x, (int)y, width, height); }
public abstract void FillRectangle(dPen pen, float x, float y, int width, int height);
public override void DrawRectangle(dPen pen, float x, float y, int width, int height) { g.DrawRectangle(pen.ToGDIPen(), (int)x, (int)y, width, height); }