44#define RClipWithRight 6
45#define RClipWithLeft 5
47#define BClipWithRight 3
48#define BClipWithLeft 2
49#define ClipWithRight 3
51#define ClipWithBottom 1
54#define RRight (1 << RClipWithRight)
55#define RLeft (1 << RClipWithLeft)
56#define Behind (1 << PointBehind)
57#define BRight (1 << BClipWithRight)
58#define BLeft (1 << BClipWithLeft)
59#define Right (1 << ClipWithRight)
60#define Left (1 << ClipWithLeft)
61#define Bottom (1 << ClipWithBottom)
62#define Top (1 << ClipWithTop)
63#define Bmask (~BRight & ~BLeft)
64#define Rmask (~RRight & ~RLeft)
65#define RBmask (Rmask & Bmask)
66#define RLeftRight (RRight | RLeft)
67#define ALLmask (RRight | RLeft | Behind | BRight | BLeft | Bottom | Top )
73#define MAXCOLORDIST (443.40501)
78#define MAXOPTIONLEN 256
80#define SMALLMOVEMENT 40000
81#define POINTERRATIO 0.007
83#define TWOPI 6.2831853
84#define REQUESTFACTOR 3
97#define TITLEFONT "12x24"
98#define BOLDFONT "9x15bold"
101#define LONGESTSTRING " ROTATE OBJECT ABOUT Z Horizontal "
122#define MAX_COLORS 232
123#define BUFFER_CMAP 11
129#define ENDS_INTERSECT 3
138#define clipWithBottom(x,y,dx,dy,V) { x -= ((dx * (V+y)) / dy); y = -V; }
139#define clipWithTop(x,y,dx,dy,V) { x += ((dx * (V-y)) / dy); y = V; }
140#define clipWithLeftSide(x,y,dx,dy,H) { y -= ((dy * (H+x)) / dx); x = -H; }
141#define clipWithRightSide(x,y,dx,dy,H) { y += ((dy * (H-x)) / dx); x = H; }
143#define FONTHEIGHT(font) (font->ascent + font->descent)
145#define HelpPrint(g, x, y, string){ \
146 XDrawString(g->dpy, g->helpWin, g->helpGc, x, y, string, strlen(string)); \
147 y += FONTHEIGHT(g->font); \
150#define swapPtrs(ptr1, ptr2) \
151 ptr1 = (polygon **)((long)ptr1 ^ (long)ptr2); \
152 ptr2 = (polygon **)((long)ptr2 ^ (long)ptr1); \
153 ptr1 = (polygon **)((long)ptr1 ^ (long)ptr2);
155#define median5(v1,v2,v3,v4,v5) \
156 if((*v1)->dist < (*v2)->dist){ \
159 if((*v3)->dist < (*v4)->dist){ \
162 if((*v1)->dist < (*v3)->dist){ \
166 if((*v2)->dist < (*v5)->dist){ \
169 if((*v2)->dist < (*v3)->dist){ \
173 if((*v3)->dist < (*v5)->dist){ \
XColor cmapColors[3][256]
XColor wireframeColors[2][256]
Pixmap stipple[NUMSTIPPLES]
struct STACKELEMENT StackElement
struct ANGLEPOINT anglePoint