- Added desaturated translation support to ACS.

SVN r3878 (trunk)
This commit is contained in:
Randy Heit 2012-09-20 02:14:43 +00:00
parent 9a28216e30
commit 864fb5798e
2 changed files with 20 additions and 0 deletions

View File

@ -6534,6 +6534,25 @@ scriptwait:
}
break;
case PCD_TRANSLATIONRANGE3:
{ // translation using desaturation
int start = STACK(8);
int end = STACK(7);
fixed_t r1 = STACK(6);
fixed_t g1 = STACK(5);
fixed_t b1 = STACK(4);
fixed_t r2 = STACK(3);
fixed_t g2 = STACK(2);
fixed_t b2 = STACK(1);
sp -= 8;
if (translation != NULL)
translation->AddDesaturation(start, end,
FIXED2DBL(r1), FIXED2DBL(g1), FIXED2DBL(b1),
FIXED2DBL(r2), FIXED2DBL(g2), FIXED2DBL(b2));
}
break;
case PCD_ENDTRANSLATION:
// This might be useful for hardware rendering, but
// for software it is superfluous.

View File

@ -601,6 +601,7 @@ public:
PCD_PUSHFUNCTION, // from Eternity
/*360*/ PCD_CALLSTACK, // from Eternity
PCD_SCRIPTWAITNAMED,
PCD_TRANSLATIONRANGE3,
/*361*/ PCODE_COMMAND_COUNT
};