Porytiles
Loading...
Searching...
No Matches
color_position.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <variant>
5
7
8namespace porytiles {
9
23
29 std::size_t slot;
30};
31
44 std::size_t ref_palette_index;
46 std::size_t source_group_index;
47};
48
57using ColorPosition = std::variant<UndeterminedPosition, AbsolutePosition, IndirectPosition>;
58
70 std::size_t source_palette;
71
74
76 std::size_t ref_palette;
77
80
82 std::size_t source_group_index;
83};
84
85} // namespace porytiles
Represents a 32-bit RGBA color.
Definition rgba32.hpp:21
std::variant< UndeterminedPosition, AbsolutePosition, IndirectPosition > ColorPosition
The position state of a color during palette construction.
Position state for a color assigned to a specific palette slot.
Position state for a color whose slot is determined by another color in another palette.
Position state for a color that has not yet been assigned a palette slot.