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

virtual void Impala::Application::SDash::VideoJpgCamera::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 129 of file VideoJpgCamera.h.

References OglGui::Window::DisplayFunc(), mDoLoop, mFrameNr, mLastFrameNr, mOglView, mPlaying, mStartTime, mStartTimeOffset, mTimePerFrame, and NextFrameIntoOglImage().

00130     {
00131         clock_t  cpuTime = clock();
00132 
00133             if (mPlaying && mOglView){
00134             float   elapsedTime = ((cpuTime-mStartTime) / (float) CLOCKS_PER_SEC) + (float) mStartTimeOffset;
00135             int     nFrameNr = elapsedTime / mTimePerFrame;
00136             if ((mFrameNr != nFrameNr) && ((mFrameNr < mLastFrameNr) || mDoLoop))
00137             {
00138                 mFrameNr = nFrameNr-1;
00139                     NextFrameIntoOglImage(mOglView->im );
00140             }
00141         }
00142         if (mOglView && mOglView->rotZ<0)
00143             mOglView->rotZ += 30;
00144         Window::DisplayFunc();
00145     }

Here is the call graph for this function:


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