32 [[nodiscard]]
const std::string &
name()
const
80 constexpr auto parse(std::format_parse_context &ctx)
92struct std::formatter<std::vector<porytiles::PaletteHint>> {
93 constexpr auto parse(std::format_parse_context &ctx)
98 auto format(
const std::vector<porytiles::PaletteHint> &value,
auto &ctx)
const
Represents a palette hint for the palette packing algorithm.
const std::string & name() const
PaletteHint(std::string name, Palette< Rgba32 > pal)
Constructs a PaletteHint with a name and palette.
const Palette< Rgba32 > & pal() const
A generic palette container for colors that support transparency checking.
std::ostream & operator<<(std::ostream &os, const PrimaryPairingMode m)
Stream insertion operator for PrimaryPairingMode.
std::string to_string(const PrimaryPairingMode m)
Converts a PrimaryPairingMode to its canonical string representation.
Utility functions for string manipulation and formatting.