1 /* $Id: tmerge.c,v 1.3 2002-07-17 21:55:19 bradleyb Exp $ */
3 * tmerge.c - C Texture merge routines for use with D1X
4 * Ripped from ldescent by <dph-man@iname.com>
14 void gr_merge_textures( ubyte * lower, ubyte * upper, ubyte * dest )
18 for (y=0;y<64;y++) for (x=0;x<64;x++) {
20 if (c==TRANSPARENCY_COLOR)
26 void gr_merge_textures_1( ubyte * lower, ubyte * upper, ubyte * dest )
31 for (x=0; x<64; x++ ) {
32 c = upper[ 64*x+(63-y) ];
33 if (c==TRANSPARENCY_COLOR)
39 void gr_merge_textures_2( ubyte * lower, ubyte * upper, ubyte * dest )
44 for (x=0; x<64; x++ ) {
45 c = upper[ 64*(63-y)+(63-x) ];
46 if (c==TRANSPARENCY_COLOR)
52 void gr_merge_textures_3( ubyte * lower, ubyte * upper, ubyte * dest )
57 for (x=0; x<64; x++ ) {
58 c = upper[ 64*(63-x)+y ];
59 if (c==TRANSPARENCY_COLOR)