Created standalone rgba drawing functions
This commit is contained in:
parent
6e53c1bd12
commit
8aabc26cd9
12 changed files with 2790 additions and 976 deletions
|
|
@ -491,18 +491,19 @@ void R_MapTiltedPlane (int y, int x1)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void R_MapColoredPlane (int y, int x1)
|
||||
void R_MapColoredPlane_C (int y, int x1)
|
||||
{
|
||||
memset (ylookup[y] + x1 + dc_destorg, ds_color, (spanend[y] - x1 + 1));
|
||||
}
|
||||
|
||||
void R_MapColoredPlane_RGBA(int y, int x1)
|
||||
{
|
||||
#ifndef PALETTEOUTPUT
|
||||
canvas_pixel_t *dest = ylookup[y] + x1 + dc_destorg;
|
||||
int count = (spanend[y] - x1 + 1);
|
||||
uint32_t light = calc_light_multiplier(ds_light);
|
||||
uint32_t color = shade_pal_index(ds_color, light);
|
||||
for (int i = 0; i < count; i++)
|
||||
dest[i] = color;
|
||||
#else
|
||||
memset (ylookup[y] + x1 + dc_destorg, ds_color, (spanend[y] - x1 + 1) * sizeof(canvas_pixel_t));
|
||||
#endif
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue