25 #include "graphics/pixelformat.h" 48 void loadPal(
const char *fileName);
50 void loadRelatedPalette(
const char *fileName);
94 byte *save(byte *buf,
const uint size,
const EndianType endian)
const;
114 byte *save(byte *buf,
const uint size,
const Graphics::PixelFormat format,
const uint numColors,
const EndianType endian,
const byte firstIndex = 0)
const;
119 Palette &rotateRight(byte firstIndex, byte lastIndex);
120 Palette &rotateLeft(byte firstIndex, byte lastIndex);
121 Palette &saturatedAddColor(
Palette &output, byte firstIndex, byte lastIndex,
signed r,
signed g,
signed b)
const;
135 Palette &saturatedAddColor(
Palette &output, byte firstIndex, byte lastIndex,
signed rSource,
signed gSource,
signed bSource,
const Graphics::PixelFormat &sourceFormat)
const;
147 Palette &saturatedAddNormalizedGray(
Palette &output, byte firstIndex, byte lastIndex,
signed grayDividend,
signed grayDenominator)
const;
150 uint colorCount()
const;
154 bool isValid()
const;
160 void setGlobalOSystemPalette()
const;
163 Color getColor(byte index)
const;
166 uint8 getR(byte index)
const;
169 uint8 getG(byte index)
const;
172 uint8 getB(byte index)
const;
174 bool ensureContrast(byte &minBrightnessColorIndex);
175 bool isEqual(byte index1, byte index2);
178 int findMinBrightnessColorIndex(uint minColorIndex = 1);
179 byte brightness(byte colorIndex);
181 void saturatedAddColor(
Color &result,
const Color &baseColor,
signed r,
signed g,
signed b)
const;
EndianType
Definition: pal.h:36