예제 #1
0
        void MainLoop()
        {
            while (true)
            {
                for (; j < 1;)
                {
                    renderer.SendLightData(j, j, j, j, j);
                    j += 0.001f;
                    Thread.SpinWait(1000);

                    renderer.Draw();
                    renderer.Update(deltaTime);
                    simpleOpenGlControl1.Refresh();
                }
                for (; j > 1;)
                {
                    renderer.SendLightData(j, j, j, j, j);
                    j -= 0.001f;
                    Thread.SpinWait(100);

                    renderer.Draw();
                    renderer.Update(deltaTime);
                    simpleOpenGlControl1.Refresh();
                    //texrenderer.m.animSt.curr_frame + "";
                }
            }
        }
예제 #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            float r = float.Parse(textBox1.Text);
            float g = float.Parse(textBox2.Text);
            float b = float.Parse(textBox3.Text);
            float a = float.Parse(textBox4.Text);
            float s = float.Parse(textBox5.Text);

            renderer.SendLightData(r, g, b, a, s);
        }