Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            RenderSing.getCurrentRender().clear();
            RenderSing.getCurrentRender().addObjects(this.listBox1.Items.Cast <Object3D>().ToList());
            RenderSing.getCurrentRender().addLights(this.listBox2.Items.Cast <Light>().ToList());

            float x, y, z;

            x = 0;
            y = 0;
            z = 0;
            if (
                !float.TryParse(this.textBox4.Text, out x) ||
                !float.TryParse(this.textBox5.Text, out y) ||
                !float.TryParse(this.textBox6.Text, out z))
            {
                Console.WriteLine("erreur ambiante");
            }

            RenderSing.getCurrentRender().addLight(new AmbiantLight(new Couleur(x, y, z)));

            BitmapEcran.RefreshScreen(new Couleur(0, 0, 0));
            ProjetEleve.Go();
            BitmapEcran.Show();
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     BitmapEcran.RefreshScreen(new Couleur(0, 0, 0));
     ProjetEleve.Go();
     BitmapEcran.Show();
 }