]> icculus.org git repositories - btb/d2x.git/blob - include/ibitblt.h
need string.h for strcasecmp
[btb/d2x.git] / include / ibitblt.h
1 /* $Id: ibitblt.h,v 1.2 2002-09-04 22:27:54 btb Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * Prototypes for the ibitblt functions.
18  *
19  * Old Log:
20  * Revision 1.1  1995/08/18  15:50:57  allender
21  * Initial revision
22  *
23  * Revision 1.2  1994/05/31  11:10:56  john
24  * *** empty log message ***
25  *
26  * Revision 1.1  1994/05/30  16:08:46  john
27  * Initial revision
28  *
29  */
30
31 #ifndef _IBITBLT_H
32 #define _IBITBLT_H
33
34 // Finds location/size of the largest "hole" in bitmap mask_bmp
35 void gr_ibitblt_find_hole_size ( grs_bitmap * mask_bmp, int *minx, int *miny, int *maxx, int *maxy );
36
37 // Creates a code mask that will copy data from a bitmap that is sw by
38 // sh starting from location sx, sy with a rowsize of srowsize onto
39 // another bitmap but only copies into pixel locations that are
40 // defined as transparent in bitmap bmp.
41
42 #ifdef __MSDOS__
43 ubyte * gr_ibitblt_create_mask(grs_bitmap *mask_bmp, int sx, int sy, int sw, int sh, int srowsize);
44 ubyte * gr_ibitblt_create_mask_svga(grs_bitmap *mask_bmp, int sx, int sy, int sw, int sh, int srowsize);
45 ubyte * gr_ibitblt_create_mask_pa( grs_bitmap *mask_bmp, int sx, int sy, int sw, int sh, int srowsize);
46 #else
47 void gr_ibitblt_create_mask_pa(grs_bitmap *mask_bmp, int sx, int sy, int sw, int sh, int srowsize);
48 void gr_ibitblt_create_mask(grs_bitmap *mask_bmp, int sx, int sy, int sw, int sh, int srowsize);
49 #endif
50
51 // Copy source bitmap onto destination bitmap, not copying pixels that
52 // are defined transparent by the mask
53
54 #ifdef __MSDOS__
55 void gr_ibitblt(grs_bitmap *source_bmp, grs_bitmap *dest_bmp, ubyte *mask);
56 #else
57 void gr_ibitblt(grs_bitmap *source_bmp, grs_bitmap *dest_bmp, ubyte pixel_double);
58 #endif
59
60 #endif