comment on the code duplication for the texture resamplers

This commit is contained in:
Bill Currie 2001-09-07 17:12:02 +00:00
parent ffd9e727a8
commit c762151df6
2 changed files with 16 additions and 0 deletions

View file

@ -82,6 +82,10 @@ build_skin_8 (byte * original, int tinwidth, int tinheight,
unsigned int scaled_width, unsigned int scaled_height,
int inwidth, qboolean alpha)
{
/*
any improvements in here should be mirrored in
GL_Resample8BitTexture in gl_textures.c
*/
byte *inrow;
byte pixels[512 * 256], *out;
int i, j;
@ -108,6 +112,10 @@ build_skin_32 (byte * original, int tinwidth, int tinheight,
unsigned int scaled_width, unsigned int scaled_height,
int inwidth, qboolean alpha)
{
/*
any improvements in here should be mirrored in
GL_ResampleTexture in gl_textures.c
*/
byte *inrow;
int i, j;
int samples = alpha ? gl_alpha_format : gl_solid_format;

View file

@ -253,6 +253,10 @@ static void
GL_ResampleTexture (unsigned int *in, int inwidth, int inheight,
unsigned int *out, int outwidth, int outheight)
{
/*
any improvements in here should be mirrored in build_skin_32 in
gl_skin.c
*/
int i, j;
unsigned int frac, fracstep;
unsigned int *inrow;
@ -275,6 +279,10 @@ static void
GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight,
unsigned char *out, int outwidth, int outheight)
{
/*
any improvements in here should be mirrored in build_skin_8 in
gl_skin.c
*/
unsigned char *inrow;
int i, j;
unsigned int frac, fracstep;