private void glControl1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { _ArcBall.MouseMove(e.X, e.Y);//更新鼠标位置 } glControl1.Refresh(); }
private void openGLControl1_MouseMove(object sender, MouseEventArgs e) { if (_isMouseDown) { ArcBall.MouseMove(e.X, e.Y); if (openGLControl1.RenderTrigger == RenderTrigger.Manual) { openGLControl1.DoRender(); } } }