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

void OglGui::ViewSphere::HandleAnimation (  )  [inline]

Definition at line 271 of file ViewSphere.h.

References mAnimCnt, mAnimSteps, and OglGui::OglWindow::mOglWnd.

Referenced by DisplayFunc().

00272     {
00273                 LIST            *obj;
00274                 OGLVIEW3D       *view;
00275         int         cnt = 0;
00276 
00277         if( mAnimCnt && (mAnimCnt-- >= 0) ){
00278             ForAllElements( obj, mOglWnd->objectList ){
00279                 view = (OGLVIEW3D *) obj->info;
00280                 view->x += (cnt*0.1f) / mAnimSteps;
00281                 view->y += (cnt*0.1f) / mAnimSteps;
00282                 view->zRot += (720.0f / mAnimSteps);
00283                 view->xRot += (720.0f / mAnimSteps);
00284                 view->yRot += (720.0f / mAnimSteps);
00285                 cnt++;
00286             }
00287         }
00288     }


Generated on Thu Jan 13 09:27:20 2011 for ImpalaSrc by  doxygen 1.5.1