Worldstone
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
WorldStone::Palette Struct Reference

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
 

Detailed Description

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.

Definition at line 21 of file Palette.h.


The documentation for this struct was generated from the following files: