Definition at line 76 of file Camera3DXYZ.h. References mMouseX, mMouseY, OglGui::OglWindow::mOglWnd, mStepFactor, mTextFeedBack, and OglRotate(). Referenced by DisplayFunc(). 00077 { 00078 float stepX = -(mMouseX-w/2); 00079 float stepY = (mMouseY-h/2); 00080 00081 stepX = 10 * mStepFactor * (fabs(stepX) > 2 ? stepX : 0); 00082 stepY = 10 * mStepFactor * (fabs(stepY) > 2 ? stepY : 0); 00083 00084 OglRotate(cam->rX,cam->rY,cam->rZ,stepY,&cam->uX,&cam->uY,&cam->uZ ); 00085 OglRotate(cam->rX,cam->rY,cam->rZ,stepY,&cam->tX,&cam->tY,&cam->tZ ); 00086 00087 OglRotate(cam->uX,cam->uY,cam->uZ,stepX,&cam->rX,&cam->rY,&cam->rZ ); 00088 OglRotate(cam->uX,cam->uY,cam->uZ,stepX,&cam->tX,&cam->tY,&cam->tZ ); 00089 if (!mTextFeedBack) 00090 return; 00091 oglSys.PosColPrintf(mOglWnd, mMouseX, mMouseY, oglRED, "XY-Rotate"); 00092 }
Here is the call graph for this function:
|