|
Porytiles
|
Represents a color index value for palette operations. More...
#include <color_index.hpp>
Public Member Functions | |
| ColorIndex (std::size_t index) | |
| auto | operator<=> (const ColorIndex &) const =default |
| operator const std::size_t & () const & | |
| operator std::size_t && () && | |
| const std::size_t & | value () const & |
| std::size_t && | value () && |
| std::size_t | index () const |
Represents a color index value for palette operations.
ColorIndex is a semantic wrapper around an integer that represents a unique identifier for a unique color in the global ColorIndexMap construction process. This type provides type safety and semantic clarity when working with color indices, distinguishing them from other integer values in the codebase.
Unlike IndexPixel, ColorIndex does not follow the SupportsTransparency concept, as it is used to represent the sequential indices assigned to non-transparent colors in the ColorIndexMap. A ColorSet is a collection of ColorIndexes, which can be redeemed for their original colors by consulting the ColorIndexMap.
Definition at line 23 of file color_index.hpp.
|
inline |
Definition at line 26 of file color_index.hpp.
|
inline |
Definition at line 52 of file color_index.hpp.
|
inline |
Definition at line 31 of file color_index.hpp.
|
inline |
Definition at line 37 of file color_index.hpp.
|
default |
|
inline |
Definition at line 47 of file color_index.hpp.
|
inline |
Definition at line 42 of file color_index.hpp.