|
Porytiles
|
#include <bitset>#include <cstddef>#include <cstdint>#include <functional>#include <string>#include "porytiles/domain/models/color_index.hpp"#include "porytiles/domain/models/palette.hpp"Go to the source code of this file.
Classes | |
| class | porytiles::ColorSet |
| A set of colors represented as a bitset. More... | |
| struct | std::hash< porytiles::ColorSet > |
| std::hash specialization for ColorSet. More... | |
Namespaces | |
| namespace | porytiles |
Functions | |
| ColorSet | porytiles::color_set_union (const ColorSet &a, const ColorSet &b) |
| Computes the union of two ColorSets. | |
| ColorSet | porytiles::color_set_intersection (const ColorSet &a, const ColorSet &b) |
| Computes the intersection of two ColorSets. | |
| std::size_t | porytiles::color_set_count (const ColorSet &set) |
| Counts the number of colors in a ColorSet. | |
| bool | porytiles::is_subset (const ColorSet &a, const ColorSet &b) |
| Checks if one ColorSet is a subset of another. | |
| std::size_t | porytiles::intersection_size (const ColorSet &a, const ColorSet &b) |
| Computes the intersection size between two ColorSets. | |
| std::size_t | porytiles::union_size (const ColorSet &a, const ColorSet &b) |
| Computes the union size of two ColorSets. | |
| template<typename Func > | |
| void | porytiles::for_each_color (const ColorSet &set, Func &&func) |
| Iterates over each color index in a ColorSet. | |
Variables | |
| constexpr std::size_t | porytiles::num_colors = pal::max_size * pal::num_pals |
| Maximum allowable color count for GBA hardware. | |