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 porytiles {
11
18class PngRgbaImageLoader final {
19 public:
20 PngRgbaImageLoader() = default;
21
23 load_from_file(const std::filesystem::path &path) const;
24};
25
26} // namespace porytiles
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