Reimplemented from OglGui::Window. Definition at line 62 of file Animator.h. References Animate(), Clear(), OglGui::Window::DisplayFunc(), mCnt, mDXs, mDYs, mInitialized, mOglWindows, mXs, mYs, OglGui::OglWindow::SetAlwaysDraw(), OglGui::OglWindow::SetVisible(), and OglGui::OglWindow::UpdateScene(). 00063 { 00064 Window::DisplayFunc(); 00065 if (!mInitialized) 00066 { 00067 mInitialized = true; 00068 Animate(); 00069 } 00070 00071 if (mCnt>=0) 00072 { 00073 int sz = mOglWindows.size(); 00074 for (int i=0; i<sz; i++) 00075 { 00076 mOglWindows[i]->x = mXs[i] + sin(DEG2RAD(2*mCnt)) * mCnt * mDXs[i]; 00077 mOglWindows[i]->y = mYs[i] + cos(DEG2RAD(2*mCnt)) * mCnt * mDYs[i]; 00078 } 00079 UpdateScene(); 00080 } 00081 if (--mCnt==-2) 00082 { 00083 SetAlwaysDraw(false); 00084 UpdateScene(); 00085 Clear(); 00086 SetVisible(false); 00087 } 00088 }
Here is the call graph for this function:
|