Exemple #1
0
        private void glCanvas1_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                modelRotator.SetBounds(this.glCanvas1.Width, this.glCanvas1.Height);
                modelRotator.MouseDown(e.X, e.Y);
            }
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
            {
                cameraRotator.SetBounds(this.glCanvas1.Width, this.glCanvas1.Height);
                cameraRotator.MouseDown(e.X, e.Y);
            }

            PrintCameraInfo();
        }
Exemple #2
0
 private void glCanvas1_MouseDown(object sender, MouseEventArgs e)
 {
     satelliteRoration.SetBounds(this.glCanvas1.Width, this.glCanvas1.Height);
     satelliteRoration.MouseDown(e.X, e.Y);
 }
Exemple #3
0
 private void glCanvas1_MouseDown(object sender, MouseEventArgs e)
 {
     cameraRotator.SetBounds(this.glCanvas1.Width, this.glCanvas1.Height);
     cameraRotator.MouseDown(e.X, e.Y);
 }