Porytiles
Loading...
Searching...
No Matches
file_palette_saver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
8
9namespace porytiles {
10
17 public:
18 virtual ~FilePaletteSaver() = default;
19
20 [[nodiscard]] virtual ChainableResult<void>
21 save(const Palette<Rgba32, palette::max_size> &palette, const std::filesystem::path &path) const = 0;
22};
23
24} // namespace porytiles
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A service interface that saves a fixed-length Palette to a given file.
virtual ChainableResult< void > save(const Palette< Rgba32, palette::max_size > &palette, const std::filesystem::path &path) const =0
virtual ~FilePaletteSaver()=default
A generic palette container for colors that support transparency checking.
Definition palette.hpp:45