fix cyrillic in file path (Windows)

This commit is contained in:
clasher113 2026-10-20 14:53:27 +03:00
parent ee41e058a9
commit f8101011a0
7 changed files with 61 additions and 17 deletions

View file

@ -8,10 +8,13 @@
class Texture;
class ImageData;
namespace io {
class path;
}
namespace png {
std::unique_ptr<ImageData> load_image(const ubyte* bytes, size_t size);
void write_image(const std::string& filename, const ImageData* image);
void write_image(const io::path& file, const ImageData* image);
util::Buffer<ubyte> encode_image(const ImageData& image);
std::unique_ptr<Texture> load_texture(const ubyte* bytes, size_t size);
std::unique_ptr<Texture> load_texture(const std::string& filename);