static void _DrawPie(int x0, int y0, int r, int Angle0, int Angle1, int Type) { int PenSizeOld = GUI_GetPenSize(); GUI_SetPenSize(r); r/=2; GL_DrawArc(x0,y0,r,r,Angle0, Angle1); GUI_SetPenSize(PenSizeOld); GUI_USE_PARA(Type); }
/*---------------------------------------------------------------------- InvertEllipse set the geometry of the fake box used to interract with the user. ----------------------------------------------------------------------*/ void InvertEllipse (int frame, int x, int y, int width, int height, int xr, int yr) { ThotWindow w; w = (ThotWindow)FrameTable[frame].WdFrame; if (w != None) GL_DrawArc (x, y, width, height, 0, 360 * 64, 0, FALSE); }
void GUI_DrawArc (int x0, int y0, int rx, int ry, int a0, int a1) { GUI_LOCK(); #if (GUI_WINSUPPORT) WM_ADDORG(x0,y0); WM_ITERATE_START(NULL) { #endif GL_DrawArc( x0, y0, rx, ry, a0, a1); #if (GUI_WINSUPPORT) } WM_ITERATE_END(); #endif GUI_UNLOCK(); }