- Set colormap light info using R_SetColorMapLight and R_SetDSColorMapLight rather than manually calculating it

- Move texture and span management into R_DrawMaskedColumn
This commit is contained in:
Magnus Norddahl 2016-12-17 22:34:36 +01:00 committed by Christoph Oelckers
commit 9ac7a07be6
8 changed files with 104 additions and 91 deletions

View file

@ -548,6 +548,11 @@ namespace swrenderer
dc_colormap = base_colormap + (GETPALOOKUP(light, shade) << COLORMAPSHIFT);
}
void R_SetColorMapLight(FDynamicColormap *base_colormap, float light, int shade)
{
R_SetColorMapLight(base_colormap->Maps, light, shade);
}
void R_SetDSColorMapLight(lighttable_t *base_colormap, float light, int shade)
{
using namespace drawerargs;
@ -555,6 +560,11 @@ namespace swrenderer
ds_colormap = base_colormap + (GETPALOOKUP(light, shade) << COLORMAPSHIFT);
}
void R_SetDSColorMapLight(FDynamicColormap *base_colormap, float light, int shade)
{
R_SetDSColorMapLight(base_colormap->Maps, light, shade);
}
void R_SetTranslationMap(lighttable_t *translation)
{
using namespace drawerargs;