ScummVM API documentation
Bagel::HodjNPodj::Palette Class Reference

Public Member Functions

virtual void setPalette (const byte *palette)
 
virtual void setPalette (const Graphics::Palette &palette)
 
virtual Graphics::Palette getPalette () const
 
virtual void loadPalette (const byte *palette)
 
virtual void loadPalette (const Graphics::Palette &palette)
 
virtual byte getPaletteIndex (uint32 color) const
 

Protected Member Functions

void loadInitialPalette ()
 

Member Function Documentation

◆ setPalette()

virtual void Bagel::HodjNPodj::Palette::setPalette ( const byte *  palette)
virtual

Set the palette to use, without changing _gamePalette

◆ getPalette()

virtual Graphics::Palette Bagel::HodjNPodj::Palette::getPalette ( ) const
virtual

Gets the currently active palette

◆ loadPalette()

virtual void Bagel::HodjNPodj::Palette::loadPalette ( const byte *  palette)
virtual

Set the palette to use, saving it in the internal _gamePalette

◆ getPaletteIndex()

virtual byte Bagel::HodjNPodj::Palette::getPaletteIndex ( uint32  color) const
virtual

Gets the closest palette index to a given rgb color


The documentation for this class was generated from the following file: