22#ifndef ULTIMA8_GFX_PALETTEMANAGER_H
23#define ULTIMA8_GFX_PALETTEMANAGER_H
25#include "common/array.h"
26#include "graphics/pixelformat.h"
27#include "ultima/ultima8/gfx/pal_transforms.h"
45 return _paletteManager;
61 Palette *getPalette(PalIndex index);
62 uint getNumPalettes()
const {
return _palettes.
size(); }
64 void duplicate(PalIndex src, PalIndex dest);
size_type size() const
Definition: array.h:316
Definition: atari-screen.h:42
Definition: palette_manager.h:39
void PixelFormatChanged(const Graphics::PixelFormat &format)
Change the pixel format used by the PaletteManager.
bool getTransformMatrix(int16 matrix[12], PalIndex index)
Get the current TransformMatrix for the given index.
void reset()
Reset the Palette Manager.
void resetTransforms()
Reset all the transforms back to default.
void updatedPalette(PalIndex index, int maxindex=0)
void transformPalette(PalIndex index, const int16 matrix[12])
Apply a transform matrix to a palette (-4.11 fixed)
void untransformPalette(PalIndex index)
reset the transformation matrix of a palette
Definition: algorithm.h:29