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$";
31 /* Rolf-Dieter Klein, 900907 1.0 SPC 860 */
32 /* rev 900917 r 2.01 */
33 /* rev 901213 r 2.10 */
34 /* rev 910307 r 2.20 new functions */
35 /* rev 910308 r 2.21 rdblit */
37 int rdputlink(int channel
, int count
, void *pointer
);
38 int rdgetlink(int channel
, int count
, void *pointer
);
39 int rdgramode(int mode
);
40 void rdsetpixel(int x
,int y
,int color
);
41 void rdhorline(int x1
,int x2
,int y
,char *buffer
);
42 void rdvgapal(int i
, int r
, int g
, int b
);
43 void rdvgaall(void *buffer
);
44 void rdline(int x1
,int y1
,int x2
,int y2
,int color
);
45 void rdrect(int x1
,int y1
,int x2
,int y2
,int color
,int fillmode
);
46 void rdellipse(int x1
,int y1
,int x2
,int y2
,int color
,int fillmode
);
47 void rddrawmode(int visual
,int page
);
48 void rdclip(int x1
,int y1
,int x2
,int y2
);
50 int rdspcnumber(void);
53 void int86(int intno
,void *inregs
,void *outregs
);
54 void int86x(int intno
,void *inregs
,void *outregs
,void *sregs
);
55 void outp(int port
,int byte
);
57 void rdbuftopc(void *src
,unsigned long destpc
,int count
);
58 void rdbuffrompc(unsigned long srcpc
,void *dest
,int count
);
59 int rdlinda1out(int id
,int cnt
,void *erg
);
60 int rdlinda1in(int id
,int cnt
,void *erg
);
61 int rdlinda1rd(int id
,int cnt
,void *erg
);
62 int rdlindaout(int id
,int nocnt
,int *cntptr
,void **ptrptr
);
63 int rdlindard(int id
,int nocnt
,int *cntptr
,void **ptrptr
);
64 int rdlindain(int id
,int nocnt
,int *cntptr
,void **ptrptr
);
65 void rdtextbin(int mode
); /* mode =0 text, =1 binary for next open */
66 int rdclrcounter(int index
); /* =0 ok, else maxindex */
67 int rdgetcounter(int index
); /* get counter, incremented each time */
68 int rdclrfield(int maxbits
); /* clr field, =0 ok, else =maxbits */
69 int rdnextfield(int offset
); /* get next free field start offset, no free=-1 */
70 void rdblit(int x1
,int x2
,int y1
,int y2
,int xdest
,int ydest
); /* grafik genoa */