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

virtual void OglGui::Transition::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 144 of file Transition.h.

References OglGui::Window::DisplayFunc(), DoBlock(), OglGui::OglWindow::H(), mDurationMs, mInitializeStart, mNx, mNy, mParent, mPerc, mStartTime, mTransitMode1, mTransitMode2, OglGui::OglWindow::SetDimensions(), OglGui::OglWindow::SetVisible(), and OglGui::OglWindow::W().

00145     {
00146         if (mInitializeStart)
00147         {
00148             mInitializeStart = false;
00149             mStartTime = OglClock()*1000;
00150         }
00151         if ((mPerc = ((OglClock()*1000 - mStartTime) * 100) / mDurationMs) > 100)
00152             SetVisible(false);
00153         else if (mTransitMode1 || mTransitMode2)
00154         {
00155             OGC oldOGC;
00156             OGCSave(&oldOGC);
00157             SetDimensions(0,0,mParent->W(),mParent->H());
00158             int cnt = 0, blW = W()/mNx, blH = H()/mNy;
00159             for (int i=0; i<mNy; i++) for (int j=0; j<mNx; j++)
00160                 DoBlock((cnt++%2)?mTransitMode2:mTransitMode1,
00161                         j * blW, i * blH, blW, blH);
00162             OGCRestore(&oldOGC);
00163         }
00164         Window::DisplayFunc();
00165     }

Here is the call graph for this function:


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