22#ifndef TOLTECS_PALETTE_H
23#define TOLTECS_PALETTE_H
25#include "common/array.h"
26#include "common/system.h"
28#include "toltecs/toltecs.h"
40 void setFullPalette(
byte *palette);
41 void getFullPalette(
byte *palette);
42 void setDeltaPalette(
byte *palette,
byte mask, int8 deltaValue, int16 count, int16 startIndex);
44 void loadAddPalette(uint resIndex,
byte startIndex);
45 void loadAddPaletteFrom(
byte *source,
byte startIndex,
byte count);
47 void addFragment(uint resIndex, int16
id);
48 uint16 findFragment(int16
id);
49 void clearFragments();
51 byte getMatchingColor(
byte r,
byte g,
byte b);
52 void buildColorTransTable(
byte limit, int8 deltaValue,
byte mask);
53 byte getColorTransPixel(
byte pixel)
const {
return _colorTransTable[pixel]; }
55 byte *getMainPalette() {
return _mainPalette; }
56 byte *getAnimPalette() {
return _animPalette; }
72 byte _mainPalette[768];
73 byte _animPalette[768];
74 byte _colorTransTable[256];
Definition: toltecs.h:104