Exemple #1
0
        private void Stage_MouseDown(object sender, MouseEventArgs e)
        {
            glCoord glCo = new glCoord();

            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                moving = true;
                startX = (int)glCo.X;
                startY = (int)glCo.Y;
            }
        }
Exemple #2
0
        private void Stage_MouseMove(object sender, MouseEventArgs e)
        {
            glCoord glCo = new glCoord();

            if (moving)
            {
                angleX = angleX + (glCo.X - startX);
                angleY = angleY + (glCo.Y - startY);
                startX = (int)glCo.X;
                startY = (int)glCo.Y;
                Render();
            }
        }
Exemple #3
0
 private void Stage_MouseMove(object sender, MouseEventArgs e)
 {
     glCoord glCo = new glCoord();
     if (moving)
     {
         angleX = angleX + (glCo.X - startX);
         angleY = angleY + (glCo.Y - startY);
         startX = (int)glCo.X;
         startY = (int)glCo.Y;
         Render();
     }
 }
Exemple #4
0
 private void Stage_MouseDown(object sender, MouseEventArgs e)
 {
     glCoord glCo = new glCoord();
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         moving = true;
         startX = (int)glCo.X;
         startY = (int)glCo.Y;
     }
 }