Definition at line 94 of file Camera3DXYZ.h. References mLastX, mLastY, mMouseX, mMouseY, OglGui::OglWindow::mOglWnd, mTextFeedBack, and OglRotate(). Referenced by DisplayFunc(). 00095 { 00096 float step = (mMouseY-mLastY); 00097 if (mMouseX > w/2) 00098 step = -step; 00099 if (abs(mMouseX-mLastX) > abs(step)) 00100 { 00101 step = (mMouseX-mLastX); 00102 if (mMouseY < h/2) 00103 step = -step; 00104 } 00105 step *= 0.5f; 00106 OglRotate( cam->tX, cam->tY, cam->tZ, step, &cam->rX, &cam->rY, &cam->rZ ); 00107 OglRotate( cam->tX, cam->tY, cam->tZ, step, &cam->uX, &cam->uY, &cam->uZ ); 00108 if (!mTextFeedBack) 00109 return; 00110 oglSys.PosColPrintf(mOglWnd, mMouseX, mMouseY, oglRED, "Z-Rotate"); 00111 }
Here is the call graph for this function:
|