diff options
author | Simon Howard | 2008-10-01 18:19:11 +0000 |
---|---|---|
committer | Simon Howard | 2008-10-01 18:19:11 +0000 |
commit | c137615aa75afda8c744e57278c138bd29d5d68e (patch) | |
tree | d0fdde644945eae0bda0a77f4995057fa9c5e723 /src/hexen | |
parent | f8b216522bb4a2f2a8279412ff949955706d727e (diff) | |
download | chocolate-doom-c137615aa75afda8c744e57278c138bd29d5d68e.tar.gz chocolate-doom-c137615aa75afda8c744e57278c138bd29d5d68e.tar.bz2 chocolate-doom-c137615aa75afda8c744e57278c138bd29d5d68e.zip |
Rename "FuzzColumn"/"FuzzPatch" for Heretic/Hexen code to
TLColumn/TLPatch for consistency; these are translucent draw functions,
not fuzzy draw functions like Doom's R_DrawFuzzColumn.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1313
Diffstat (limited to 'src/hexen')
-rw-r--r-- | src/hexen/h2def.h | 8 | ||||
-rw-r--r-- | src/hexen/r_draw.c | 38 | ||||
-rw-r--r-- | src/hexen/r_local.h | 12 | ||||
-rw-r--r-- | src/hexen/r_main.c | 6 | ||||
-rw-r--r-- | src/hexen/r_things.c | 16 | ||||
-rw-r--r-- | src/hexen/sb_bar.c | 18 | ||||
-rw-r--r-- | src/hexen/v_video.c | 8 |
7 files changed, 43 insertions, 63 deletions
diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h index cdd1c0a8..61731c5d 100644 --- a/src/hexen/h2def.h +++ b/src/hexen/h2def.h @@ -329,8 +329,8 @@ typedef struct #define MF_TELEPORT 0x8000 // don't cross lines or look at heights #define MF_MISSILE 0x10000 // don't hit same species, explode on block -#define MF_ALTSHADOW 0x20000 // alternate fuzzy draw -#define MF_SHADOW 0x40000 // use fuzzy draw (shadow demons / invis) +#define MF_ALTSHADOW 0x20000 // alternate translucent draw +#define MF_SHADOW 0x40000 // use translucent draw (shadow demons / invis) #define MF_NOBLOOD 0x80000 // don't bleed when shot (use puff) #define MF_CORPSE 0x100000 // don't stop moving halfway off a step #define MF_INFLOAT 0x200000 // floating to a height for a move, don't @@ -1228,8 +1228,8 @@ extern int usegamma; void V_Init(void); // Allocates buffer screens, call before R_Init void V_DrawPatch(int x, int y, patch_t * patch); -void V_DrawFuzzPatch(int x, int y, patch_t * patch); -void V_DrawAltFuzzPatch(int x, int y, patch_t * patch); +void V_DrawTLPatch(int x, int y, patch_t * patch); +void V_DrawAltTLPatch(int x, int y, patch_t * patch); void V_DrawShadowedPatch(int x, int y, patch_t * patch); void V_DrawRawScreen(byte * raw); diff --git a/src/hexen/r_draw.c b/src/hexen/r_draw.c index 9a3264f6..75db750f 100644 --- a/src/hexen/r_draw.c +++ b/src/hexen/r_draw.c @@ -126,17 +126,8 @@ void R_DrawColumnLow(void) while (count--); } -/* -#define FUZZTABLE 50 -#define FUZZOFF (SCREENWIDTH) -int fuzzoffset[FUZZTABLE] = { -FUZZOFF,-FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,-FUZZOFF,-FUZZOFF,-FUZZOFF,FUZZOFF,-FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,-FUZZOFF,-FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF,FUZZOFF,-FUZZOFF,FUZZOFF -}; -int fuzzpos = 0; -*/ - #ifndef __WATCOMC__ -void R_DrawFuzzColumn(void) +void R_DrawTLColumn(void) { int count; byte *dest; @@ -153,7 +144,7 @@ void R_DrawFuzzColumn(void) #ifdef RANGECHECK if ((unsigned) dc_x >= SCREENWIDTH || dc_yl < 0 || dc_yh >= SCREENHEIGHT) - I_Error("R_DrawFuzzColumn: %i to %i at %i", dc_yl, dc_yh, dc_x); + I_Error("R_DrawTLColumn: %i to %i at %i", dc_yl, dc_yh, dc_x); #endif dest = ylookup[dc_yl] + columnofs[dc_x]; @@ -161,17 +152,6 @@ void R_DrawFuzzColumn(void) fracstep = dc_iscale; frac = dc_texturemid + (dc_yl - centery) * fracstep; -// OLD FUZZY INVISO SPRITE STUFF -/* do - { - *dest = colormaps[6*256+dest[fuzzoffset[fuzzpos]]]; - if (++fuzzpos == FUZZTABLE) - fuzzpos = 0; - dest += SCREENWIDTH; - frac += fracstep; - } while (count--); -*/ - do { *dest = tinttable[*dest + @@ -186,11 +166,11 @@ void R_DrawFuzzColumn(void) //============================================================================ // -// R_DrawAltFuzzColumn +// R_DrawAltTLColumn // //============================================================================ -void R_DrawAltFuzzColumn(void) +void R_DrawAltTLColumn(void) { int count; byte *dest; @@ -207,7 +187,7 @@ void R_DrawAltFuzzColumn(void) #ifdef RANGECHECK if ((unsigned) dc_x >= SCREENWIDTH || dc_yl < 0 || dc_yh >= SCREENHEIGHT) - I_Error("R_DrawFuzzColumn: %i to %i at %i", dc_yl, dc_yh, dc_x); + I_Error("R_DrawAltTLColumn: %i to %i at %i", dc_yl, dc_yh, dc_x); #endif dest = ylookup[dc_yl] + columnofs[dc_x]; @@ -267,11 +247,11 @@ void R_DrawTranslatedColumn(void) //============================================================================ // -// R_DrawTranslatedFuzzColumn +// R_DrawTranslatedTLColumn // //============================================================================ -void R_DrawTranslatedFuzzColumn(void) +void R_DrawTranslatedTLColumn(void) { int count; byte *dest; @@ -305,12 +285,12 @@ void R_DrawTranslatedFuzzColumn(void) //============================================================================ // -// R_DrawTranslatedAltFuzzColumn +// R_DrawTranslatedAltTLColumn // //============================================================================ /* -void R_DrawTranslatedAltFuzzColumn (void) +void R_DrawTranslatedAltTLColumn (void) { int count; byte *dest; diff --git a/src/hexen/r_local.h b/src/hexen/r_local.h index 8e04af32..187e709f 100644 --- a/src/hexen/r_local.h +++ b/src/hexen/r_local.h @@ -356,7 +356,7 @@ extern int detailshift; // 0 = high, 1 = low extern void (*colfunc) (void); extern void (*basecolfunc) (void); -extern void (*fuzzcolfunc) (void); +extern void (*tlcolfunc) (void); extern void (*spanfunc) (void); int R_PointOnSide(fixed_t x, fixed_t y, node_t * node); @@ -520,13 +520,13 @@ extern byte *dc_source; // first pixel in a column void R_DrawColumn(void); void R_DrawColumnLow(void); -void R_DrawFuzzColumn(void); -void R_DrawFuzzColumnLow(void); +void R_DrawTLColumn(void); +void R_DrawTLColumnLow(void); void R_DrawTranslatedColumn(void); -void R_DrawTranslatedFuzzColumn(void); +void R_DrawTranslatedTLColumn(void); void R_DrawTranslatedColumnLow(void); -void R_DrawAltFuzzColumn(void); -//void R_DrawTranslatedAltFuzzColumn(void); +void R_DrawAltTLColumn(void); +//void R_DrawTranslatedAltTLColumn(void); extern int ds_y; extern int ds_x1; diff --git a/src/hexen/r_main.c b/src/hexen/r_main.c index 270b7386..3437ca74 100644 --- a/src/hexen/r_main.c +++ b/src/hexen/r_main.c @@ -75,7 +75,7 @@ int extralight; // bumped light from gun blasts void (*colfunc) (void); void (*basecolfunc) (void); -void (*fuzzcolfunc) (void); +void (*tlcolfunc) (void); void (*transcolfunc) (void); void (*spanfunc) (void); @@ -603,14 +603,14 @@ void R_ExecuteSetViewSize(void) if (!detailshift) { colfunc = basecolfunc = R_DrawColumn; - fuzzcolfunc = R_DrawFuzzColumn; + tlcolfunc = R_DrawTLColumn; transcolfunc = R_DrawTranslatedColumn; spanfunc = R_DrawSpan; } else { colfunc = basecolfunc = R_DrawColumnLow; - fuzzcolfunc = R_DrawFuzzColumn; + tlcolfunc = R_DrawTLColumn; transcolfunc = R_DrawTranslatedColumn; spanfunc = R_DrawSpanLow; } diff --git a/src/hexen/r_things.c b/src/hexen/r_things.c index 956c8a96..b69e59d0 100644 --- a/src/hexen/r_things.c +++ b/src/hexen/r_things.c @@ -30,9 +30,9 @@ #include "r_local.h" void R_DrawColumn(void); -void R_DrawFuzzColumn(void); -void R_DrawAltFuzzColumn(void); -//void R_DrawTranslatedAltFuzzColumn(void); +void R_DrawTLColumn(void); +void R_DrawAltTLColumn(void); +//void R_DrawTranslatedAltTLColumn(void); typedef struct { @@ -359,7 +359,7 @@ void R_DrawMaskedColumn(column_t * column, signed int baseclip) dc_source = (byte *) column + 3; dc_texturemid = basetexturemid - (column->topdelta << FRACBITS); // dc_source = (byte *)column + 3 - column->topdelta; - colfunc(); // either R_DrawColumn or R_DrawFuzzColumn + colfunc(); // either R_DrawColumn or R_DrawTLColumn } column = (column_t *) ((byte *) column + column->length + 4); } @@ -391,24 +391,24 @@ void R_DrawVisSprite(vissprite_t * vis, int x1, int x2) dc_colormap = vis->colormap; // if(!dc_colormap) -// colfunc = fuzzcolfunc; // NULL colormap = shadow draw +// colfunc = tlcolfunc; // NULL colormap = shadow draw if (vis->mobjflags & (MF_SHADOW | MF_ALTSHADOW)) { if (vis->mobjflags & MF_TRANSLATION) { - colfunc = R_DrawTranslatedFuzzColumn; + colfunc = R_DrawTranslatedTLColumn; dc_translation = translationtables - 256 + vis->class * ((MAXPLAYERS - 1) * 256) + ((vis->mobjflags & MF_TRANSLATION) >> (MF_TRANSSHIFT - 8)); } else if (vis->mobjflags & MF_SHADOW) { // Draw using shadow column function - colfunc = fuzzcolfunc; + colfunc = tlcolfunc; } else { - colfunc = R_DrawAltFuzzColumn; + colfunc = R_DrawAltTLColumn; } } else if (vis->mobjflags & MF_TRANSLATION) diff --git a/src/hexen/sb_bar.c b/src/hexen/sb_bar.c index bc9c63cd..0dc27047 100644 --- a/src/hexen/sb_bar.c +++ b/src/hexen/sb_bar.c @@ -1545,16 +1545,16 @@ void DrawKeyBar(void) if (CPlayer->armorpoints[i] <= (ArmorIncrement[CPlayer->class][i] >> 2)) { - V_DrawFuzzPatch(150 + 31 * i, 164, - W_CacheLumpNum(W_GetNumForName("armslot1") + - i, PU_CACHE)); + V_DrawTLPatch(150 + 31 * i, 164, + W_CacheLumpNum(W_GetNumForName("armslot1") + + i, PU_CACHE)); } else if (CPlayer->armorpoints[i] <= (ArmorIncrement[CPlayer->class][i] >> 1)) { - V_DrawAltFuzzPatch(150 + 31 * i, 164, - W_CacheLumpNum(W_GetNumForName("armslot1") - + i, PU_CACHE)); + V_DrawAltTLPatch(150 + 31 * i, 164, + W_CacheLumpNum(W_GetNumForName("armslot1") + + i, PU_CACHE)); } else { @@ -1640,7 +1640,7 @@ void DrawFullScreenStuff(void) { if (CPlayer->readyArtifact > 0) { - V_DrawFuzzPatch(286, 170, W_CacheLumpName("ARTIBOX", PU_CACHE)); + V_DrawTLPatch(286, 170, W_CacheLumpName("ARTIBOX", PU_CACHE)); V_DrawPatch(284, 169, W_CacheLumpName(patcharti[CPlayer->readyArtifact], PU_CACHE)); @@ -1655,8 +1655,8 @@ void DrawFullScreenStuff(void) x = inv_ptr - curpos; for (i = 0; i < 7; i++) { - V_DrawFuzzPatch(50 + i * 31, 168, W_CacheLumpName("ARTIBOX", - PU_CACHE)); + V_DrawTLPatch(50 + i * 31, 168, W_CacheLumpName("ARTIBOX", + PU_CACHE)); if (CPlayer->inventorySlotNum > x + i && CPlayer->inventory[x + i].type != arti_none) { diff --git a/src/hexen/v_video.c b/src/hexen/v_video.c index a763a639..46bd0bb7 100644 --- a/src/hexen/v_video.c +++ b/src/hexen/v_video.c @@ -178,7 +178,7 @@ void V_DrawPatch(int x, int y, patch_t * patch) /* ================== = -= V_DrawFuzzPatch += V_DrawTLPatch = = Masks a column based translucent masked pic to the screen. = @@ -186,7 +186,7 @@ void V_DrawPatch(int x, int y, patch_t * patch) */ extern byte *tinttable; -void V_DrawFuzzPatch(int x, int y, patch_t * patch) +void V_DrawTLPatch(int x, int y, patch_t * patch) { int count, col; column_t *column; @@ -229,7 +229,7 @@ void V_DrawFuzzPatch(int x, int y, patch_t * patch) /* ================== = -= V_DrawAltFuzzPatch += V_DrawAltTLPatch = = Masks a column based translucent masked pic to the screen. = @@ -237,7 +237,7 @@ void V_DrawFuzzPatch(int x, int y, patch_t * patch) */ extern byte *tinttable; -void V_DrawAltFuzzPatch(int x, int y, patch_t * patch) +void V_DrawAltTLPatch(int x, int y, patch_t * patch) { int count, col; column_t *column; |