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

void OglGui::Carousel3D::HandleRotateTo (  )  [inline]

Definition at line 196 of file Carousel3D.h.

References mCenterRotY, mIsRotatingTo, mRotateTo, mRotateToDuration, mRotateToStart, mRotateToStartTime, and OglGui::OglWindow::UpdateScene().

Referenced by DisplayFunc().

00197     {
00198         if (!mIsRotatingTo)
00199             return;
00200 
00201         //float timePassed = clock() - mRotateToStartTime;
00202         double timePassed = OglClock() - mRotateToStartTime;
00203         if (timePassed > mRotateToDuration)
00204         {
00205             mCenterRotY   = mRotateTo;
00206             mIsRotatingTo = false;
00207             return;
00208         }
00209         double factor = timePassed/mRotateToDuration;
00210         mCenterRotY  = mRotateToStart + factor * (mRotateTo-mRotateToStart);
00211         UpdateScene();
00212     }

Here is the call graph for this function:


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