mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 01:01:05 +00:00
Yet another translucency function
This commit is contained in:
parent
47e84d8252
commit
7d4b9c2d33
2 changed files with 10 additions and 0 deletions
|
@ -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).
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue