Пример #1
0
 private void glControl1_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         _ArcBall.MouseMove(e.X, e.Y);//更新鼠标位置
     }
     glControl1.Refresh();
 }
Пример #2
0
        private void openGLControl1_MouseMove(object sender, MouseEventArgs e)
        {
            if (_isMouseDown)
            {
                ArcBall.MouseMove(e.X, e.Y);

                if (openGLControl1.RenderTrigger == RenderTrigger.Manual)
                {
                    openGLControl1.DoRender();
                }
            }
        }