4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Green Red Orange Magenta Azure Cyan Skyblue
29 static char *SRCID_rdklib_h = "$Id$";
35 /* Rolf-Dieter Klein, 900907 1.0 SPC 860 */
36 /* rev 900917 r 2.01 */
37 /* rev 901213 r 2.10 */
38 /* rev 910307 r 2.20 new functions */
39 /* rev 910308 r 2.21 rdblit */
41 int rdputlink(int channel, int count, void *pointer);
42 int rdgetlink(int channel, int count, void *pointer);
43 int rdgramode(int mode);
44 void rdsetpixel(int x,int y,int color);
45 void rdhorline(int x1,int x2,int y,char *buffer);
46 void rdvgapal(int i, int r, int g, int b);
47 void rdvgaall(void *buffer);
48 void rdline(int x1,int y1,int x2,int y2,int color);
49 void rdrect(int x1,int y1,int x2,int y2,int color,int fillmode);
50 void rdellipse(int x1,int y1,int x2,int y2,int color,int fillmode);
51 void rddrawmode(int visual,int page);
52 void rdclip(int x1,int y1,int x2,int y2);
54 int rdspcnumber(void);
57 void int86(int intno,void *inregs,void *outregs);
58 void int86x(int intno,void *inregs,void *outregs,void *sregs);
59 void outp(int port,int byte);
61 void rdbuftopc(void *src,unsigned long destpc,int count);
62 void rdbuffrompc(unsigned long srcpc,void *dest,int count);
63 int rdlinda1out(int id,int cnt,void *erg);
64 int rdlinda1in(int id,int cnt,void *erg);
65 int rdlinda1rd(int id,int cnt,void *erg);
66 int rdlindaout(int id,int nocnt,int *cntptr,void **ptrptr);
67 int rdlindard(int id,int nocnt,int *cntptr,void **ptrptr);
68 int rdlindain(int id,int nocnt,int *cntptr,void **ptrptr);
69 void rdtextbin(int mode); /* mode =0 text, =1 binary for next open */
70 int rdclrcounter(int index); /* =0 ok, else maxindex */
71 int rdgetcounter(int index); /* get counter, incremented each time */
72 int rdclrfield(int maxbits); /* clr field, =0 ok, else =maxbits */
73 int rdnextfield(int offset); /* get next free field start offset, no free=-1 */
74 void rdblit(int x1,int x2,int y1,int y2,int xdest,int ydest); /* grafik genoa */