Definition at line 56 of file MenuOnButton.h. References OglGui::Window::GetState(), OglGui::OglWindow::H(), mActive, and OglGui::OglWindow::W(). Referenced by DisplayFunc(). 00057 { 00058 OGC myOGC; 00059 OGCSave(&myOGC); 00060 00061 float w = W(), hH = H()/2, coords[6]; 00062 coords[0] = w - (mActive ? 9 : 7); 00063 coords[1] = hH + (mActive ? 2 : 3); 00064 coords[2] = w - 3; 00065 coords[3] = hH + (mActive ? 2 : 0); 00066 coords[4] = w - (mActive ? 6 : 7); 00067 coords[5] = hH - (mActive ? 2 : 3); 00068 00069 ULONG col = GetState() ? 0xff505050 : oglLIGHTGREY; 00070 col = (GetState()==2 || mActive) ? oglBLACK : col; 00071 OGCSetPolyFillMode(theOGC,3); 00072 SetSolidFillColor(col); 00073 FillTriangles(coords,3); 00074 OGCRestore(&myOGC); 00075 }
Here is the call graph for this function:
|