|
Porytiles
|
std::formatter specialization for Rgba32. More...
#include <rgba32.hpp>
Public Member Functions | |
| constexpr auto | parse (std::format_parse_context &ctx) |
| auto | format (const porytiles::Rgba32 &rgba, auto &ctx) const |
std::formatter specialization for Rgba32.
Enables Rgba32 to be used with std::format() and related formatting functions. This makes Rgba32 participate in the FormatParam string conversion chain via the std::formattable concept.
Example usage:
This is the recommended way to add formatting support for custom types in Porytiles. The formatter delegates to the porytiles::to_string() overload for consistent string representation across the codebase.
Definition at line 218 of file rgba32.hpp.
|
inline |
Definition at line 224 of file rgba32.hpp.
|
inlineconstexpr |
Definition at line 219 of file rgba32.hpp.