Porytiles
Loading...
Searching...
No Matches
png_rgba_image_loader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <memory>
5
9
10namespace porytiles2 {
11
20class PngRgbaImageLoader final {
21 public:
22 PngRgbaImageLoader() = default;
23
25 load_from_file(const std::filesystem::path &path) const;
26};
27
28} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
An image loader that reads PNG files to create an Image with an Rgba32 pixel type.
ChainableResult< std::unique_ptr< Image< Rgba32 > >, ImageLoadError > load_from_file(const std::filesystem::path &path) const