Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void OglGui::Camera3DXYZ::ZoomCameraZ ( SCENE3D *  cam,
int  w,
int  h 
) [inline]

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     }


Generated on Fri Mar 19 11:58:20 2010 for ImpalaSrc by  doxygen 1.5.1