mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 04:30:43 +00:00
comment on the code duplication for the texture resamplers
This commit is contained in:
parent
ffd9e727a8
commit
c762151df6
2 changed files with 16 additions and 0 deletions
|
@ -82,6 +82,10 @@ build_skin_8 (byte * original, int tinwidth, int tinheight,
|
||||||
unsigned int scaled_width, unsigned int scaled_height,
|
unsigned int scaled_width, unsigned int scaled_height,
|
||||||
int inwidth, qboolean alpha)
|
int inwidth, qboolean alpha)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
any improvements in here should be mirrored in
|
||||||
|
GL_Resample8BitTexture in gl_textures.c
|
||||||
|
*/
|
||||||
byte *inrow;
|
byte *inrow;
|
||||||
byte pixels[512 * 256], *out;
|
byte pixels[512 * 256], *out;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
@ -108,6 +112,10 @@ build_skin_32 (byte * original, int tinwidth, int tinheight,
|
||||||
unsigned int scaled_width, unsigned int scaled_height,
|
unsigned int scaled_width, unsigned int scaled_height,
|
||||||
int inwidth, qboolean alpha)
|
int inwidth, qboolean alpha)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
any improvements in here should be mirrored in
|
||||||
|
GL_ResampleTexture in gl_textures.c
|
||||||
|
*/
|
||||||
byte *inrow;
|
byte *inrow;
|
||||||
int i, j;
|
int i, j;
|
||||||
int samples = alpha ? gl_alpha_format : gl_solid_format;
|
int samples = alpha ? gl_alpha_format : gl_solid_format;
|
||||||
|
|
|
@ -253,6 +253,10 @@ static void
|
||||||
GL_ResampleTexture (unsigned int *in, int inwidth, int inheight,
|
GL_ResampleTexture (unsigned int *in, int inwidth, int inheight,
|
||||||
unsigned int *out, int outwidth, int outheight)
|
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;
|
int i, j;
|
||||||
unsigned int frac, fracstep;
|
unsigned int frac, fracstep;
|
||||||
unsigned int *inrow;
|
unsigned int *inrow;
|
||||||
|
@ -275,6 +279,10 @@ static void
|
||||||
GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight,
|
GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight,
|
||||||
unsigned char *out, int outwidth, int outheight)
|
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;
|
unsigned char *inrow;
|
||||||
int i, j;
|
int i, j;
|
||||||
unsigned int frac, fracstep;
|
unsigned int frac, fracstep;
|
||||||
|
|
Loading…
Reference in a new issue