1 /*-----------------------------------------------------------------------------
7 AUTHOR: Kevin M. Kramer
11 DATE INITIALS DESCRIPTION
12 -------- -------- --------------------------------------------------------
13 12/15/93 KMK initial implementation
14 02/04/97 JJF Modification (Adding LUT functions)
15 12/12/05 gdiso Support rainbow color
19 This module contains functions implement a small subset of the Borland BGI
20 functions under X windows. Hence this module should not be included when
21 compiling under Borland C++ enviroments.
23 -----------------------------------------------------------------------------*/
29 // definition of command line argument structure
30 #define RES_640x480 1 /* 640 x 480 resolution */
31 #define RES_800x600 2 /* 800 x 600 resolution */
32 #define RES_1024x768 3 /* 1024 x 768 resolution */
41 #define GR_LIGHTGRAY 7
43 #define GR_LIGHTBLUE 9
44 #define GR_LIGHTGREEN 10
45 #define GR_LIGHTCYAN 11
46 #define GR_LIGHTRED 12
47 #define GR_LIGHTMAGENTA 13
51 #define Rainbow_Color_NUM 20
78 #define CONFIGURENOTIFY 1
88 #define BUTTONMOTION 11
89 #define BUTTONRELEASE 12
92 #define grNoInitGraph -1
93 #define grNotDetected -2
94 #define grFileNotFound -3
95 #define grInvalidDriver -4
96 #define grNoLoadMem -5
98 typedef void (*PFREDRAW
) ();
100 int GRPrintOpen (const char *, int = 20);
101 void GRPrintClose (void);
102 void GRInitGraphics (int = 7, int = 14);
103 void GRFreeGraphics (void);
104 void GROpenGraphWin (char *, char *, int, int, int, int, PFREDRAW
);
105 void GRClearGraphWin (void);
106 void GRSetColor (int);
107 void GRSetFillColor (int, int = PS_SOLID
);
108 void GRPutPixel (int, int, int);
109 void GRLine (int, int, int, int);
110 void GRCircle (int, int, int);
111 void GRDrawPoly (int, int *);
112 void GRFillPoly (int, int *);
113 void GRText (int, int, char *);
114 int GRGetMaxX (void);
115 int GRGetMaxY (void);
117 void setcmdargs (int, char **);
118 void flushdisplay (void);
119 int getevent (short int *, int *, int *, int *, int *);
120 int GRSaveScreen (const char *, int, int);
121 #endif /* __xgraph_h */