public static void GdiThread2() { Linie[] l = new Linie[50]; //double[][] wuerfel = new wuerfel[3][24]; System.Random rnd = new System.Random(); rnd.Next(); for (int i = 0; i < l.Length; i++) { l[i] = new Linie(new Vektor(rnd.Next(0, 400), rnd.Next(0, 400), rnd.Next(0, 400)), new Vektor(rnd.Next(0, 400), rnd.Next(0, 400), rnd.Next(0, 400))); } System.Windows.Forms.Application.Run(new gdiDoubleBuffer(l)); }
public static void GdiThread1() { Linie[] l = new Linie[1000]; //double[][] wuerfel = new wuerfel[3][24]; System.Random rnd = new System.Random(); rnd.Next(); for (int i = 0; i < l.Length; i++) { l[i] = new Linie(new Vektor(rnd.Next(0, 400), rnd.Next(0, 400), rnd.Next(0, 400)), new Vektor(rnd.Next(0, 400), rnd.Next(0, 400), rnd.Next(0, 400))); } gdiDrawing gd = new gdiDrawing(l); gd.Show(); gd.Init(); gd.Run(); }