Definition at line 63 of file Camera3DXYZ.h. References mMouseX, mMouseY, OglGui::OglWindow::mOglWnd, mStepFactor, and mTextFeedBack. Referenced by DisplayFunc(). 00064 { 00065 float step = (mMouseY-h/2); 00066 step *= 2 * mStepFactor * (abs(step) < 15 ? 1.f : abs(step)/15.f); 00067 cam->camX += step * cam->tX; 00068 cam->camY += step * cam->tY; 00069 cam->camZ += step * cam->tZ; 00070 if (!mTextFeedBack) 00071 return; 00072 oglSys.PosColPrintf(mOglWnd, mMouseX, mMouseY, oglRED, "Zoom %s", 00073 step < 0 ? "Out" : (step>0) ? "In" : ""); 00074 }
|