4 //allocates 320 * height bytes for buff
5 int vbinit(int height);
7 //frees space held by buff
10 /********** dbtovga *****************************
11 * function to copy from memory to vga
12 * dest = location in vga to start copying to
13 * size = source size / 4 (size mod 4 must = 0)
14 ************************************************/
15 void dbtovga(unsigned char far* dest, unsigned char far* source, int size);
16 #pragma aux dbtovga= \
18 parm [es di] [ds si] [cx];
20 /************* getpcximage ***********************************
21 * function reads a 320x200x256 pcx file and outputs to screen
22 * if plt = 0 then the palette is not read
23 * returns 0 if file unopened or screen not allocated
24 *************************************************************/
25 int getpcximage(char fname[], int plt);
27 /***************************************************************
28 * new pcx functions for single graphics file created 10/12/97
29 * still use whole 320x200 for each sprite/tile - change soon!
30 * note: no error checking, yet
31 * functions should be moved to own file
32 ***************************************************************/
34 //opens pcx file and reads first 320x200 image, no palette
35 //returns 0 if file not found, 1 otherwise
36 int pcxopen(char fname[]);
38 //reads next 320x200 image in file opened by pcxopen
41 //reads the pallette into the vga registers and closes the file