Porytiles
Loading...
Searching...
No Matches
best_fusion_strategy.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
7
8namespace porytiles {
9
32class BestFusionStrategy final : public PackingStrategy {
33 public:
34 BestFusionStrategy() = default;
35
42 [[nodiscard]] ChainableResult<PackingOutput> pack(const PackingInput &input) const override;
43
49 [[nodiscard]] std::string name() const override
50 {
51 return "Best Fusion";
52 }
53};
54
55} // namespace porytiles
Greedy palette packing algorithm using weighted cost optimization.
std::string name() const override
Returns the name of this strategy.
ChainableResult< PackingOutput > pack(const PackingInput &input) const override
Packs tiles into palettes using the Best Fusion algorithm.
A result type that maintains a chainable sequence of errors for debugging and error reporting.
Abstract interface for palette packing algorithms.
Input data aggregate for the low-level palette packing algorithm.