Beispiel #1
0
/*
** 停止
**   マウスボタンを離したときに実行する
*/
void trackballStop(int x, int y)
{
  /* ドラッグ終了点における回転を求める */
  trackballMotion(x, y);

  /* 回転の保存 */
  cq[0] = tq[0];
  cq[1] = tq[1];
  cq[2] = tq[2];
  cq[3] = tq[3];

  /* ドラッグ終了 */
  drag = 0;
}
Beispiel #2
0
static void motion(int x, int y)
{
    /* トラックボール移動 */
    trackballMotion(x, y);
}