|
| | Palette (MADSEngine *vm) |
| |
| virtual | ~Palette () |
| |
| void | setEntry (byte palIndex, byte r, byte g, byte b) |
| |
| uint8 | palIndexFromRgb (byte r, byte g, byte b, byte *paletteData=nullptr) |
| |
| void | setSystemPalette () |
| |
| void | resetGamePalette (int lowRange, int highRange) |
| |
| void | initPalette () |
| |
| void | setLowRange () |
| |
|
void | setColorFlags (byte r, byte g, byte b) |
| |
|
void | setColorValues (byte r, byte g, byte b) |
| |
|
void | lock () |
| |
|
void | unlock () |
| |
|
void | refreshSceneColors () |
| |
| | Fader (MADSEngine *vm) |
| |
| void | setPalette (const byte *colors, uint start, uint num) |
| |
| void | grabPalette (byte *colors, uint start, uint num) |
| |
| void | getFullPalette (byte palette[PALETTE_SIZE]) |
| |
| void | setFullPalette (byte palette[PALETTE_SIZE]) |
| |
| int | rgbMerge (byte r, byte g, byte b) |
| |
| int | rgbMerge (RGB6 &palEntry) |
| |
| void | fadeOut (byte palette[PALETTE_SIZE], byte *paletteMap, int baseColor, int numColors, int baseGrey, int numGreys, int tickDelay, int steps) |
| |
| void | fadeIn (byte palette[PALETTE_SIZE], byte destPalette[PALETTE_SIZE], int baseColor, int numColors, int baseGrey, int numGreys, int tickDelay, int steps) |
| |
|
| static void | setGradient (byte *palette, int start, int count, int rgbValue1, int rgbValue2) |
| |
|
static int | closestColor (const byte *matchColor, const byte *refPalette, int paletteInc, int count) |
| |
|
|
byte | _mainPalette [PALETTE_SIZE] |
| |
|
byte | _cyclingPalette [PALETTE_SIZE] |
| |
|
uint32 | _palFlags [PALETTE_COUNT] |
| |
|
PaletteUsage | _paletteUsage |
| |
|
RGBList | _rgbList |
| |
|
bool | _lockFl |
| |
|
int | _lowRange |
| |
|
int | _highRange |
| |
|
bool | _colorFlags [4] |
| |
|
int | _colorValues [4] |
| |
◆ Palette()
◆ ~Palette()
| virtual MADS::Palette::~Palette |
( |
| ) |
|
|
inlinevirtual |
◆ setEntry()
| void MADS::Palette::setEntry |
( |
byte |
palIndex, |
|
|
byte |
r, |
|
|
byte |
g, |
|
|
byte |
b |
|
) |
| |
◆ palIndexFromRgb()
| uint8 MADS::Palette::palIndexFromRgb |
( |
byte |
r, |
|
|
byte |
g, |
|
|
byte |
b, |
|
|
byte * |
paletteData = nullptr |
|
) |
| |
Returns the palette index in the palette that most closely matches the specified RGB pair
◆ setSystemPalette()
| void MADS::Palette::setSystemPalette |
( |
| ) |
|
Sets a small set of system/core colors needed by the game
◆ setGradient()
| static void MADS::Palette::setGradient |
( |
byte * |
palette, |
|
|
int |
start, |
|
|
int |
count, |
|
|
int |
rgbValue1, |
|
|
int |
rgbValue2 |
|
) |
| |
|
static |
Update a range of an arbitrary palette
◆ resetGamePalette()
| void MADS::Palette::resetGamePalette |
( |
int |
lowRange, |
|
|
int |
highRange |
|
) |
| |
◆ initPalette()
| void MADS::Palette::initPalette |
( |
| ) |
|
Initializes the main palette
◆ setLowRange()
| void MADS::Palette::setLowRange |
( |
| ) |
|
Set the first four palette entries with preset values
The documentation for this class was generated from the following file: