VoxelEngine/src/coders/imageio.hpp
2024-11-27 23:25:56 +03:00

18 lines
416 B
C++

#pragma once
#include <memory>
#include <string>
#include <filesystem>
class ImageData;
namespace imageio {
inline const std::string PNG = ".png";
bool is_read_supported(const std::string& extension);
bool is_write_supported(const std::string& extension);
std::unique_ptr<ImageData> read(const std::filesystem::path& file);
void write(const std::string& filename, const ImageData* image);
}