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
25
33 std::size_t slot;
34};
35
50 std::size_t ref_pal_index;
52 std::size_t source_group_index;
53};
54
65using ColorPosition = std::variant<UndeterminedPosition, AbsolutePosition, IndirectPosition>;
66
82 std::size_t source_pal;
83
88
92 std::size_t ref_pal;
93
98
103};
104
105} // namespace porytiles
Represents a 32-bit RGBA color.
Definition rgba32.hpp:23
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.