1 // tmerge.c - C Texture merge routines for use with D1X
2 // Ripped from ldescent by <dph-man@iname.com>
10 void gr_merge_textures( ubyte * lower, ubyte * upper, ubyte * dest )
14 for (y=0;y<64;y++) for (x=0;x<64;x++) {
16 if (c==TRANSPARENCY_COLOR)
22 void gr_merge_textures_1( ubyte * lower, ubyte * upper, ubyte * dest )
27 for (x=0; x<64; x++ ) {
28 c = upper[ 64*x+(63-y) ];
29 if (c==TRANSPARENCY_COLOR)
35 void gr_merge_textures_2( ubyte * lower, ubyte * upper, ubyte * dest )
40 for (x=0; x<64; x++ ) {
41 c = upper[ 64*(63-y)+(63-x) ];
42 if (c==TRANSPARENCY_COLOR)
48 void gr_merge_textures_3( ubyte * lower, ubyte * upper, ubyte * dest )
53 for (x=0; x<64; x++ ) {
54 c = upper[ 64*(63-x)+y ];
55 if (c==TRANSPARENCY_COLOR)