1 /* Demo Int Server (DIS) V1.0 - Header & documentation file */
\r
3 extern int dis_version(void);
\r
4 /* Initialize dis. IMPORTANT. This routine must be called at start of each
\r
5 ** demo part, it will clear the exitkey flag and do other stuff as well...
\r
6 ** returns version number
\r
8 ** 0=dis not installed!
\r
11 extern int dis_indemo(void);
\r
12 /* Returns status if the actual demo is running.
\r
13 ** 0=part run from dos
\r
14 ** 1=part run from demo (no mode switches etc)
\r
17 extern int dis_waitb(void);
\r
18 /* waits for border, retuns number of frames since last call.
\r
19 ** (currently returns always 1)
\r
22 extern int dis_exit(void);
\r
23 /* returns 1 if part should exit, 0 if not.
\r
24 ** Currently any key press sets dis_exit return status to 1.
\r
27 extern void dis_partstart(void);
\r
28 /* initializes dis (calls dis_version), if dis is not detected
\r
29 ** exits to dos with an error msg.
\r
32 extern void * dis_msgarea(int areanumber);
\r
33 /* returns a pointer to a 64 byte interpart communications area.
\r
34 ** areanumber is 0..3
\r
37 extern int dis_muscode(int);
\r
38 /* returns a music syncronization code. As a parameter, give the
\r
39 ** code you are waiting, so a skip can be easily done by DIS.
\r
42 extern int dis_musplus(void);
\r
43 /* returns a music syncronization code. As a parameter, give the
\r
44 ** code you are waiting, so a skip can be easily done by DIS.
\r
47 extern int dis_musrow(int);
\r
48 /* returns a music syncronization code. As a parameter, give the
\r
49 ** code you are waiting, so a skip can be easily done by DIS.
\r
52 extern void dis_setcopper(int routine_number,void (*routine)(void));
\r
53 /* routine=1(top of screen)/2(bottom of screen)/3(retrace)
\r
54 ** routine=pointer to routine
\r
57 void _dis_setmframe(int frame);
\r
58 int _dis_getmframe(void);
\r
59 int _dis_sync(void);
\r