EuropaTools/include/europa/io/yatf/Reader.hpp
modeco80 9c6448a817 libeuropa,libeuropa/tools: Drop libpixel dependency
libpixel (suprisingly) still compiles, but depends on libraries in a very annoying manner that makes EuropaTools hard to compile. Also, I don't like stb_image_write.

Replace it with some hand-done structs and the simpler/faster/better `lodepng`.
2025-01-15 23:40:41 -05:00

33 lines
628 B
C++

//
// EuropaTools
//
// (C) 2021-2025 modeco80 <lily.modeco80@protonmail.ch>
//
// SPDX-License-Identifier: MIT
//
#ifndef EUROPA_IO_YATFREADER_H
#define EUROPA_IO_YATFREADER_H
#include <europa/structs/Yatf.hpp>
#include <iosfwd>
namespace europa::util {
struct ImageSurface;
}
namespace europa::io::yatf {
/// Reader for PS2 Europa .tex (YATF - Yet Another Texture Format) files.
struct Reader {
explicit Reader(std::istream& is);
bool ReadImage(structs::YatfHeader& header, util::ImageSurface& surface);
private:
std::istream& stream;
};
} // namespace europa::io::yatf
#endif // EUROPA_IO_YATFREADER_H