Porytiles
Loading...
Searching...
No Matches
color_set_builder.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
5#include "gsl/pointers"
6
10
11namespace porytiles2 {
12
17 public:
26 explicit ColorSetBuilder(gsl::not_null<TextFormatter *> format) : format_{format} {}
27
39 // [[nodiscard]] ColorSet
40 // build(const NormalizedPal<Rgba32> &pal, const std::map<Rgba32, unsigned int> &color_index_map) const;
41
42 private:
46 TextFormatter *format_;
47};
48
49} // namespace porytiles2
Service that builds a ColorSet from a NormalizedPal using a pre-defined color index map.
ColorSetBuilder(gsl::not_null< TextFormatter * > format)
Constructs a ColorSetBuilder with the specified text formatter.
Abstract base class for applying text styling with context-aware formatting.