Ejemplo n.º 1
0
        public void OnPaint(object sender, PaintEventArgs e)
        {
            DrawingGame.DrawBackground(e, panel.Size);
            e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            for (int i = 0; i < Game.Lights.Length; i++)
            {
                for (int j = 0; j < Game.Lights[i].Wires.Count; j++)
                {
                    DrawingGame.DrawWire(e, Game.Lights[i].Wires[j], Game.Param);
                }
            }

            for (int i = 0; i < Game.Lights.Length; i++)
            {
                DrawingGame.DrawLight(e, Game.Lights[i].Light);
            }
        }
Ejemplo n.º 2
0
 public void OnPaint(object sender, PaintEventArgs e)
 {
     DrawingGame.DrawBackground(e, panel.Size);
 }