1 /* $Id: tmerge.c,v 1.4 2002-10-10 18:55:32 btb Exp $ */
4 * tmerge.c - C Texture merge routines for use with D1X
5 * Ripped from ldescent by <dph-man@iname.com>
15 void gr_merge_textures( ubyte * lower, ubyte * upper, ubyte * dest )
19 for (y=0;y<64;y++) for (x=0;x<64;x++) {
21 if (c==TRANSPARENCY_COLOR)
27 void gr_merge_textures_1( ubyte * lower, ubyte * upper, ubyte * dest )
32 for (x=0; x<64; x++ ) {
33 c = upper[ 64*x+(63-y) ];
34 if (c==TRANSPARENCY_COLOR)
40 void gr_merge_textures_2( ubyte * lower, ubyte * upper, ubyte * dest )
45 for (x=0; x<64; x++ ) {
46 c = upper[ 64*(63-y)+(63-x) ];
47 if (c==TRANSPARENCY_COLOR)
53 void gr_merge_textures_3( ubyte * lower, ubyte * upper, ubyte * dest )
58 for (x=0; x<64; x++ ) {
59 c = upper[ 64*(63-x)+y ];
60 if (c==TRANSPARENCY_COLOR)