Porytiles
Loading...
Searching...
No Matches
jasc_pal_saver.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace porytiles2 {
7
11class JascPalSaver final : public FilePalSaver {
12 public:
13 JascPalSaver() = default;
14
15 [[nodiscard]] ChainableResult<void>
16 save(const Palette<Rgba32> &pal, const std::filesystem::path &path) const override;
17};
18
19} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
A service interface that saves a Palette to a given file.
An implementation of FilePalSaver that saves palettes to JASC-PAL (Paintshop Pro) pal files.
ChainableResult< void > save(const Palette< Rgba32 > &pal, const std::filesystem::path &path) const override
A palette container for colors that support transparency checking.
Definition palette.hpp:34