Worldstone
|
Helper to load a Diablo 2 palette (.pal/.dat format) More...
#include <Palette.h>
Classes | |
struct | Color |
struct | Color24Bits |
Public Member Functions | |
bool | decode (const char *filename) |
bool | decode (IStream *file) |
uint8_t | GetClosestColorIndex (Color color) |
bool | operator== (const Palette &rhs) const |
Public Attributes | |
std::array< Color, colorCount > | colors |
Static Public Attributes | |
static const size_t | colorCount = 256 |
Helper to load a Diablo 2 palette (.pal/.dat format)
Diablo II uses 256 colors palettes to render images. Most of the time they are used in combination with colormaps to have different color variations of a same image.