1 // tmerge.c - C Texture merge routines for use with D1X
2 // Ripped from ldescent by <dph-man@iname.com>
5 #ifdef NO_ASM // If for some reason we have elected not to use assembler...
9 void gr_merge_textures( ubyte * lower, ubyte * upper, ubyte * dest )
13 for (y=0;y<64;y++) for (x=0;x<64;x++) {
15 if (c==TRANSPARENCY_COLOR)
21 void gr_merge_textures_1( ubyte * lower, ubyte * upper, ubyte * dest )
26 for (x=0; x<64; x++ ) {
27 c = upper[ 64*x+(63-y) ];
28 if (c==TRANSPARENCY_COLOR)
34 void gr_merge_textures_2( ubyte * lower, ubyte * upper, ubyte * dest )
39 for (x=0; x<64; x++ ) {
40 c = upper[ 64*(63-y)+(63-x) ];
41 if (c==TRANSPARENCY_COLOR)
47 void gr_merge_textures_3( ubyte * lower, ubyte * upper, ubyte * dest )
52 for (x=0; x<64; x++ ) {
53 c = upper[ 64*(63-x)+y ];
54 if (c==TRANSPARENCY_COLOR)