- removed all uses of DTA_Translation except for the single one that passes a custom built table.
This means that with the exception of 3 pointers the DrawTexture interface only accepts numeric values now. Still need to get rid of the last 3 to have this ready for scripting.
This commit is contained in:
parent
d50e52ea59
commit
dadc8e2ec2
11 changed files with 41 additions and 49 deletions
|
|
@ -201,7 +201,7 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
|||
{
|
||||
parms.colorOverlay = PalEntry(parms.colorOverlay).InverseColor();
|
||||
}
|
||||
// Note that this overrides DTA_Translation in software, but not in hardware.
|
||||
// Note that this overrides the translation in software, but not in hardware.
|
||||
FDynamicColormap *colormap = GetSpecialLights(MAKERGB(255,255,255),
|
||||
parms.colorOverlay & MAKEARGB(0,255,255,255), 0);
|
||||
translation = &colormap->Maps[(APART(parms.colorOverlay)*NUMCOLORMAPS/255)*256];
|
||||
|
|
@ -735,6 +735,10 @@ bool DCanvas::ParseDrawTextureTags(FTexture *img, double x, double y, DWORD tag,
|
|||
parms->remap = ListGetTranslation(tags);
|
||||
break;
|
||||
|
||||
case DTA_TranslationIndex:
|
||||
parms->remap = TranslationToTable(ListGetInt(tags));
|
||||
break;
|
||||
|
||||
case DTA_ColorOverlay:
|
||||
parms->colorOverlay = ListGetInt(tags);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue