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
30class BestFusionStrategy final : public PackingStrategy {
31 public:
32 BestFusionStrategy() = default;
33
38 [[nodiscard]] ChainableResult<PackingOutput> pack(const PackingInput &input) const override;
39
43 [[nodiscard]] std::string name() const override
44 {
45 return "Best Fusion";
46 }
47};
48
49} // 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.