Definition at line 81 of file SpinWheel.h. References CenterValStr(), mDrawLineEtched, mLineDistance, OglGui::OglWindow::mOglWnd, mShowValInWheel, and mVal. Referenced by DisplayFunc(). 00082 { 00083 int start = - abs((int)(3*mVal)) % mOglWnd->height; 00084 int n = 0, lDist = mLineDistance; 00085 00086 for(int i = start; i < mOglWnd->height; i += lDist){ 00087 n++; 00088 if (i < 0) continue; 00089 SetSolidLineColor(mDrawLineEtched ? oglWHITE : oglBLACK); 00090 DrawLine(0, i, mOglWnd->width, i); 00091 SetSolidLineColor(mDrawLineEtched ? oglBLACK : oglWHITE); 00092 DrawLine(0, i+1, mOglWnd->width, i+1); 00093 00094 if (mLineDistance > 7 && !(n % 5)){ 00095 SetSolidLineColor(oglBLUE); 00096 DrawLine(0, i+lDist/2, mOglWnd->width, i+lDist/2); 00097 } 00098 } 00099 00100 if (mShowValInWheel) 00101 CenterValStr(0, 0); 00102 }
Here is the call graph for this function:
|