1 /*-----------------------------------------------------------------------------
8 DATE INITIALS DESCRIPTION
9 -------- -------- --------------------------------------------------------
10 04/15/97 KMK initial implementation
14 This module contains the graphics functions.
16 -----------------------------------------------------------------------------*/
22 // definition of command line argument structure
23 #define RES_640x480 1 /* 640 x 480 resolution */
24 #define RES_800x600 2 /* 800 x 600 resolution */
25 #define RES_1024x768 3 /* 1024 x 768 resolution */
34 #define GR_LIGHTGRAY 7
36 #define GR_LIGHTBLUE 9
37 #define GR_LIGHTGREEN 10
38 #define GR_LIGHTCYAN 11
39 #define GR_LIGHTRED 12
40 #define GR_LIGHTMAGENTA 13
44 #define Rainbow_Color_NUM 20
67 typedef void (*PFREDRAW
) (); /* pfredraw */
69 int GRPrintOpen (const char *, int);
70 void GRPrintClose (void);
71 void GRInitGraphics (int = 7, int = 14);
72 void GRFreeGraphics (void);
73 void GROpenGraphWin (char *, char *, int, int, int, int, PFREDRAW
);
74 void GRSetColor (int);
75 void GRSetFillColor (int, int=0);
76 void GRPutPixel (int, int, int);
77 void GRLine (int, int, int, int);
78 void GRCircle (int, int, int);
79 void GRDrawPoly (int, int *);
80 void GRFillPoly (int, int *);
81 void GRText (int, int, char *);