Remove unused file 2d/tmerge.c

This commit is contained in:
Kp 2013-03-03 23:59:29 +00:00
parent 633ea033c4
commit 6ac6cf91ac

View file

@ -1,55 +0,0 @@
// tmerge.c - C Texture merge routines for use with D1X
// Ripped from ldescent by <dph-man@iname.com>
#include "gr.h"
void gr_merge_textures( ubyte * lower, ubyte * upper, ubyte * dest )
{
int x,y;
ubyte c;
for (y=0;y<64;y++) for (x=0;x<64;x++) {
c=upper[64*y+x];
if (c==TRANSPARENCY_COLOR)
c=lower[64*y+x];
*dest++=c;
}
}
void gr_merge_textures_1( ubyte * lower, ubyte * upper, ubyte * dest )
{
int x,y;
ubyte c;
for (y=0; y<64; y++ )
for (x=0; x<64; x++ ) {
c = upper[ 64*x+(63-y) ];
if (c==TRANSPARENCY_COLOR)
c = lower[ 64*y+x ];
*dest++ = c;
}
}
void gr_merge_textures_2( ubyte * lower, ubyte * upper, ubyte * dest )
{
int x,y;
ubyte c;
for (y=0; y<64; y++ )
for (x=0; x<64; x++ ) {
c = upper[ 64*(63-y)+(63-x) ];
if (c==TRANSPARENCY_COLOR)
c = lower[ 64*y+x ];
*dest++ = c;
}
}
void gr_merge_textures_3( ubyte * lower, ubyte * upper, ubyte * dest )
{
int x,y;
ubyte c;
for (y=0; y<64; y++ )
for (x=0; x<64; x++ ) {
c = upper[ 64*(63-x)+y ];
if (c==TRANSPARENCY_COLOR)
c = lower[ 64*y+x ];
*dest++ = c;
}
}