Definition at line 192 of file Graph.h. References OglGui::OglWindow::H(), mDrawShape, mShapeBg, mShapeFg, OVAL, and OglGui::OglWindow::W(). Referenced by DisplayFunc(). 00193 { 00194 if (!mDrawShape) 00195 return; 00196 00197 int w = W(), h = H(); 00198 if (mShapeBg) 00199 { 00200 int bInfo[3]; 00201 if (mShapeBg & 0xff000000) 00202 oglSys.StartBlend(bInfo); 00203 SetSolidFillColor(mShapeBg); 00204 if (mDrawShape == OVAL) 00205 FillOval(w/2,h/2,w/2,h/2); 00206 else 00207 FillRectangle(0,0,w-1,h-1); 00208 if (mShapeBg & 0xff000000) 00209 oglSys.EndBlend(bInfo); 00210 } 00211 if (mShapeFg & 0xff000000) 00212 { 00213 SetSolidLineColor(mShapeFg); 00214 if (mDrawShape == OVAL) 00215 DrawOval(w/2,h/2,w/2,h/2); 00216 else 00217 DrawRectangle(0.5,0.5,w-1,h-1); 00218 } 00219 }
Here is the call graph for this function:
|