]> 4ch.mooo.com Git - 16.git/blob - 16/sauce/vgabuff.h
fd7e4dd183ea2e12d63aa46c1e6ce07e0743ac7f
[16.git] / 16 / sauce / vgabuff.h
1 #ifndef vgabuff_h
2 #define vgabuff_h
3
4 //allocates 320 * height bytes for buff
5 int vbinit(int height);
6
7 //frees space held by buff
8 vbclose();
9
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=     \
17     "rep movsd"  \
18     parm [es di] [ds si] [cx];
19
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);
26
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 ***************************************************************/
33
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[]);
37
38 //reads next 320x200 image in file opened by pcxopen
39 void pcxfadvance();
40
41 //reads the pallette into the vga registers and closes the file
42 void pcxclose();
43
44
45 #endif