Yet another translucency function

This commit is contained in:
James R 2020-01-03 16:14:52 -08:00
parent 47e84d8252
commit 7d4b9c2d33
2 changed files with 10 additions and 0 deletions

View file

@ -1764,6 +1764,14 @@ void V_DrawFillConsoleMap(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c)
}
}
void V_DrawFillMaybeFade (INT32 x, INT32 y, INT32 w, INT32 h, INT32 c, UINT8 strength)
{
if (strength > 9)
V_DrawFill(x, y, w, h, c);
else
V_DrawFadeFill(x, y, w, h, c, ( c & 255 ), strength);
}
//
// If color is 0x00 to 0xFF, draw transtable (strength range 0-9).
// Else, use COLORMAP lump (strength range 0-31).

View file

@ -180,6 +180,8 @@ void V_DrawFlatFill(INT32 x, INT32 y, INT32 w, INT32 h, lumpnum_t flatnum);
void V_DrawFadeScreen(UINT16 color, UINT8 strength);
// available to lua over my dead body, which will probably happen in this heat
void V_DrawFadeFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c, UINT16 color, UINT8 strength);
/* Do you ever hate life? */
void V_DrawFillMaybeFade(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c, UINT8 strength);
void V_DrawFadeConsBack(INT32 plines);
void V_DrawPromptBack(INT32 boxheight, INT32 color);