Reimplemented from OglGui::Window. Definition at line 27 of file ApplicationEnding.h. References ChangeBackground(), OglGui::Window::DisplayFunc(), OglGui::OglWindow::H(), mEndingString, mInitialized, OglGui::OglWindow::mOglWnd, mOpacity, mParent, mSeconds, mStartTime, and OglGui::OglWindow::W(). 00028 { 00029 if (!mInitialized) 00030 { 00031 mInitialized = true; 00032 mStartTime = clock(); 00033 } 00034 clock_t cpuTime = clock(); 00035 int elapsedTime = ((cpuTime-mStartTime) / CLOCKS_PER_SEC); 00036 00037 int sW, sH; 00038 oglSys.GetTextExtent(mOglWnd, mEndingString.c_str(), &sW, &sH); 00039 00040 oglSys.PosColPrintf(mOglWnd, W()/2-sW/2, H()/2, oglWHITE, "%s %d seconds", 00041 mEndingString.c_str(), mSeconds-elapsedTime); 00042 if (elapsedTime >= mSeconds) 00043 { 00044 delete mParent; 00045 exit(0); 00046 } 00047 00048 if (mOpacity < 220) 00049 mOpacity += 5; 00050 ChangeBackground(); 00051 00052 Window::DisplayFunc(); 00053 }
Here is the call graph for this function:
|