aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/pal.h')
-rw-r--r--engines/cine/pal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/cine/pal.h b/engines/cine/pal.h
index 47d45f7e76..030621a2f4 100644
--- a/engines/cine/pal.h
+++ b/engines/cine/pal.h
@@ -139,6 +139,20 @@ public:
Palette &rotateRight(byte firstIndex, byte lastIndex);
Palette &saturatedAddColor(Palette& output, byte firstIndex, byte lastIndex, signed r, signed g, signed b);
+ /*! \brief Saturated add a normalized RGB color to current palette's subset and save the modified colors in the given output palette.
+ * \param output The output palette (Only this palette is modified)
+ * \param firstIndex First color index of the palette's subset (Inclusive range)
+ * \param lastIndex Last color index of the palette's subset (Inclusive range)
+ * \param rNormalized The normalized red color component
+ * \param gNormalized The normalized green color component
+ * \param bNormalized The normalized blue color component
+ * \param dividend Dividend of the normalized color component values
+ * \param denominator Denominator of the normalized color component values
+ * \note The normalized color component multiplier value (i.e. in range [-1, +1]) is given as a fractional number
+ * so each input color component is multiplied by it and the color component's maximum (Specified by this palette's color format)
+ */
+ Palette &saturatedAddNormalizedColor(Palette& output, byte firstIndex, byte lastIndex, signed rNormalized, signed gNormalized, signed bNormalized, signed dividend, signed denominator);
+
/*! \brief Saturated add a normalized gray value to current palette's subset and save the modified colors in the given output palette.
* \param output The output palette (Only this palette is modified)
* \param firstIndex First color index of the palette's subset (Inclusive range)