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