|
Porytiles
|
Represents an indexed color pixel. More...
#include <index_pixel.hpp>
Public Member Functions | |
| IndexPixel () | |
| IndexPixel (unsigned int index) | |
| bool | operator== (const IndexPixel &other) const =default |
| auto | operator<=> (const IndexPixel &) const =default |
| bool | is_transparent () const |
| Checks if this indexed pixel is transparent. | |
| unsigned int | index () const |
Represents an indexed color pixel.
In indexed color mode, each pixel stores an index into a palette rather than a direct color value. By convention, palette index 0 is always the transparent color.
IndexPixel{} produces a transparent pixel value with index 0. Definition at line 21 of file index_pixel.hpp.
|
inline |
Definition at line 23 of file index_pixel.hpp.
|
inline |
Definition at line 26 of file index_pixel.hpp.
|
inline |
Definition at line 51 of file index_pixel.hpp.
|
inline |
Checks if this indexed pixel is transparent.
In indexed color mode, palette index 0 is conventionally the transparent color.
Definition at line 46 of file index_pixel.hpp.
|
default |
|
default |