diff options
Diffstat (limited to 'engines/cine/pal.h')
-rw-r--r-- | engines/cine/pal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/cine/pal.h b/engines/cine/pal.h index 42228c570e..1f55a4f73f 100644 --- a/engines/cine/pal.h +++ b/engines/cine/pal.h @@ -80,6 +80,17 @@ private: }; public: + /*! \brief Create an initially black palette with the given color format and number of colors. + * \param format Color format + * \param numColors Number of colors + */ + Palette(const Graphics::PixelFormat format, const uint numColors); + + /*! \brief Clear the palette (Set color count to zero, release memory, overwrite color format with default value). + * \note This is very different from using fillWithBlack-function which fills the palette with black. + */ + Palette &clear(); + /*! \brief Load palette from buffer with given color format, endianness and number of colors. * \param buf Input buffer * \param size Input buffer size in bytes |