Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     //Code for timer iteration
     Draw.Render();
     glControl1.SwapBuffers();
     Rotate();  //Spin image according to mouse
     Main.ii++; //increase the itteration count
     label9.Text = "Current Frame: " + Main.ii.ToString();
     if (Main.Flash == 1)
     {
         if (Main.ii % 10 > 5)
         {
             Main.Map[0].data.setTint(2);
         }
         else
         {
             Main.Map[0].data.setTint(5);
         }
     }
     else if (Main.Flash == 2)
     {
         if (Main.ii % 10 > 5)
         {
             Main.Map[0].data.setTint(1);
             Main.Map[1].data.setTint(2);
         }
         else
         {
             Main.Map[0].data.setTint(4);
             Main.Map[1].data.setTint(5);
         }
     }
 }
Exemplo n.º 2
0
 private void glControl1_Paint(object sender, PaintEventArgs e)
 {
     //Update Image
     Draw.Render();
     glControl1.SwapBuffers();
 }