private void buttonX_MouseClick(object sender, MouseEventArgs e) { if (invert) { alfa -= 5; } else { alfa += 5; } alfa = (alfa + 360) % 360; labelX.Text = alfa.ToString(); OpenGlControl.Refresh(); }
private void buttonZ_MouseClick(object sender, MouseEventArgs e) { if (invert) { gamma -= 5; } else { gamma += 5; } gamma = (gamma + 360) % 360; labelZ.Text = gamma.ToString(); OpenGlControl.Refresh(); }
private void buttonY_MouseClick(object sender, MouseEventArgs e) { if (invert) { beta -= 5; } else { beta += 5; } beta = (beta + 360) % 360; labelY.Text = beta.ToString(); OpenGlControl.Refresh(); }
private void buttonDondur9_Click(object sender, EventArgs e) { x = (x + 15) % 360; OpenGlControl.Refresh(); y = (y + 50) % 360; OpenGlControl.Refresh(); z = (z + 25) % 360; OpenGlControl.Refresh(); w = (w + 5) % 360; OpenGlControl.Refresh(); q = (q + 35) % 360; OpenGlControl.Refresh(); r = (r + 120) % 360; OpenGlControl.Refresh(); p = (p + 55) % 360; OpenGlControl.Refresh(); }
private void MyKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.A) { x = (x - 55) % 360; } if (e.KeyCode == Keys.B) { x = (x + 35) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.C) { y = (y - 25) % 360; } if (e.KeyCode == Keys.D) { y = (y + 65) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.E) { z = (z - 25) % 360; } if (e.KeyCode == Keys.F) { z = (z + 75) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.G) { w = (w - 35) % 360; } if (e.KeyCode == Keys.H) { w = (w + 105) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.I) { q = (q - 65) % 360; } if (e.KeyCode == Keys.J) { q = (q + 15) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.K) { p = (p - 85) % 360; } if (e.KeyCode == Keys.L) { p = (p + 15) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.M) { r = (r - 55) % 360; } if (e.KeyCode == Keys.N) { r = (r + 35) % 360; } OpenGlControl.Refresh(); if (e.KeyCode == Keys.F10) { this.Close(); } }
private void buttonDondur8_Click(object sender, EventArgs e) { t = (t + 60) % 360; OpenGlControl.Refresh(); }
private void buttonDondur7_Click(object sender, EventArgs e) { p = (p + 55) % 360; OpenGlControl.Refresh(); }
private void buttonDondur6_Click(object sender, EventArgs e) { r = (r + 120) % 360; OpenGlControl.Refresh(); }
private void buttonDondur5_Click(object sender, EventArgs e) { q = (q + 35) % 360; OpenGlControl.Refresh(); }
private void buttonDondur4_Click(object sender, EventArgs e) { w = (w + 5) % 360; OpenGlControl.Refresh(); }
private void buttonDondur3_Click(object sender, EventArgs e) { z = (z + 25) % 360; OpenGlControl.Refresh(); }
private void buttonDondur2_Click(object sender, EventArgs e) { y = (y + 50) % 360; OpenGlControl.Refresh(); }
private void buttonDondur1_Click(object sender, EventArgs e) { x = (x + 15) % 360; OpenGlControl.Refresh(); }