30 #ifndef __CLAW_GRAPHIC_COLOR_PALETTE_HPP__
31 #define __CLAW_GRAPHIC_COLOR_PALETTE_HPP__
43 template<
typename Color >
53 unsigned int size()
const;
62 std::vector<color_type> m_palette;
70 #endif // __CLAW_GRAPHIC_COLOR_PALETTE_HPP__
Color color_type
The type of the colors stored in the palette.
color_type & operator[](unsigned int i)
Get a color from the palette.
Implementation of the claw::graphic::color_palette class.
A palette of colors, for palettized images.
const color_type & operator()(unsigned int i) const
Get the value of a color from the palette.
color_palette(unsigned int n)
Constructor.
unsigned int size() const
Get the number of colors in the palette.